Class: MessageQuickly::Messaging::Receipt::Element
- Defined in:
- lib/message_quickly/messaging/receipt/element.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#price ⇒ Object
Returns the value of attribute price.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
Attributes inherited from Element
#buttons, #image_url, #subtitle, #title
Instance Method Summary collapse
Methods inherited from Element
Methods inherited from Base
Constructor Details
This class inherits a constructor from MessageQuickly::Messaging::Element
Instance Attribute Details
#currency ⇒ Object
Returns the value of attribute currency.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/element.rb', line 6 def currency @currency end |
#price ⇒ Object
Returns the value of attribute price.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/element.rb', line 6 def price @price end |
#quantity ⇒ Object
Returns the value of attribute quantity.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/element.rb', line 6 def quantity @quantity end |
Instance Method Details
#to_hash ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/message_quickly/messaging/receipt/element.rb', line 8 def to_hash { title: title, subtitle: subtitle, quantity: quantity, price: price, currency: currency, image_url: image_url } end |