Class: MessageQuickly::Messaging::Receipt::Element

Inherits:
Element
  • Object
show all
Defined in:
lib/message_quickly/messaging/receipt/element.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#buttons, #image_url, #subtitle, #title

Instance Method Summary collapse

Methods inherited from Element

#build_button, #initialize

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from MessageQuickly::Messaging::Element

Instance Attribute Details

#currencyObject

Returns the value of attribute currency.



6
7
8
# File 'lib/message_quickly/messaging/receipt/element.rb', line 6

def currency
  @currency
end

#priceObject

Returns the value of attribute price.



6
7
8
# File 'lib/message_quickly/messaging/receipt/element.rb', line 6

def price
  @price
end

#quantityObject

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_hashObject



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