Class: Mailtrap::ContactList
- Inherits:
-
Struct
- Object
- Struct
- Mailtrap::ContactList
- Defined in:
- lib/mailtrap/contact_list.rb
Overview
Data Transfer Object for Contact List
Instance Attribute Summary collapse
-
#id ⇒ Integer
readonly
The contact list ID.
-
#name ⇒ String
readonly
The name of the contact list.
Instance Method Summary collapse
-
#to_h ⇒ Hash
The contact list attributes as a hash.
Instance Attribute Details
#id ⇒ Integer (readonly)
The contact list ID
8 9 10 |
# File 'lib/mailtrap/contact_list.rb', line 8 def id @id end |
#name ⇒ String (readonly)
The name of the contact list
8 9 10 |
# File 'lib/mailtrap/contact_list.rb', line 8 def name @name end |
Instance Method Details
#to_h ⇒ Hash
Returns The contact list attributes as a hash.
10 11 12 |
# File 'lib/mailtrap/contact_list.rb', line 10 def to_h super.compact end |