Class: Mailosaur::Models::Attachment
- Defined in:
- lib/Mailosaur/models/attachment.rb
Instance Attribute Summary collapse
- #content ⇒ String
- #content_id ⇒ String
- #content_type ⇒ String
- #file_name ⇒ String
- #id ⇒ Object
- #length ⇒ Integer
- #url ⇒ String
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Attachment
constructor
A new instance of Attachment.
Methods inherited from BaseModel
Constructor Details
#initialize(data = {}) ⇒ Attachment
Returns a new instance of Attachment.
4 5 6 7 8 9 10 11 12 |
# File 'lib/Mailosaur/models/attachment.rb', line 4 def initialize(data = {}) @id = data['id'] @content_type = data['contentType'] @file_name = data['fileName'] @content = data['content'] @content_id = data['contentId'] @length = data['length'] @url = data['url'] end |
Instance Attribute Details
#content ⇒ String
24 25 26 |
# File 'lib/Mailosaur/models/attachment.rb', line 24 def content @content end |
#content_id ⇒ String
27 28 29 |
# File 'lib/Mailosaur/models/attachment.rb', line 27 def content_id @content_id end |
#content_type ⇒ String
18 19 20 |
# File 'lib/Mailosaur/models/attachment.rb', line 18 def content_type @content_type end |
#file_name ⇒ String
21 22 23 |
# File 'lib/Mailosaur/models/attachment.rb', line 21 def file_name @file_name end |
#id ⇒ Object
15 16 17 |
# File 'lib/Mailosaur/models/attachment.rb', line 15 def id @id end |
#length ⇒ Integer
30 31 32 |
# File 'lib/Mailosaur/models/attachment.rb', line 30 def length @length end |
#url ⇒ String
33 34 35 |
# File 'lib/Mailosaur/models/attachment.rb', line 33 def url @url end |