Class: Messenger::Parameters::Attachment
- Inherits:
-
Object
- Object
- Messenger::Parameters::Attachment
- Defined in:
- lib/messenger/parameters/attachment.rb
Instance Attribute Summary collapse
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#long ⇒ Object
Returns the value of attribute long.
-
#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 set_payload_attributes(payload) end |
Instance Attribute Details
#lat ⇒ Object
Returns the value of attribute lat.
4 5 6 |
# File 'lib/messenger/parameters/attachment.rb', line 4 def lat @lat end |
#long ⇒ Object
Returns the value of attribute long.
4 5 6 |
# File 'lib/messenger/parameters/attachment.rb', line 4 def long @long end |
#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 |