Class: Messenger::Parameters::Attachment
- Inherits:
-
Object
- Object
- Messenger::Parameters::Attachment
- Defined in:
- lib/messenger/parameters/attachment.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(type:, payload:) ⇒ Attachment
constructor
A new instance of Attachment.
Constructor Details
#initialize(type:, payload:) ⇒ Attachment
Returns a new instance of Attachment.
6 7 8 9 |
# File 'lib/messenger/parameters/attachment.rb', line 6 def initialize(type:, payload:) @type = type @url = payload['url'] end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/messenger/parameters/attachment.rb', line 4 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/messenger/parameters/attachment.rb', line 4 def url @url end |