Skip to content

Commit 15a5b5a

Browse files
committed
remove constructor, fix attribute type
1 parent a2b6be6 commit 15a5b5a

File tree

3 files changed

+506
-176
lines changed

3 files changed

+506
-176
lines changed

lib/mailtrap/project.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
module Mailtrap
44
# Data Transfer Object for Project
55
# @see https://api-docs.mailtrap.io/docs/mailtrap-api-docs/ee252e413d78a-create-project
6-
# @attr_reader id [String] The project ID
6+
# @attr_reader id [Integer] The project ID
77
# @attr_reader name [String] The project name
8-
# @attr_reader share_links [Array] Array of links
8+
# @attr_reader share_links [Hash] Admin and viewer share links
99
# @attr_reader inboxes [Array] Array of inboxes
1010
# @attr_reader permissions [Hash] List of permissions
1111
Project = Struct.new(
@@ -16,9 +16,6 @@ module Mailtrap
1616
:permissions,
1717
keyword_init: true
1818
) do
19-
def initialize(options)
20-
super
21-
end
2219

2320
# @return [Hash] The project attributes as a hash
2421
def to_h

0 commit comments

Comments
 (0)