Class: Telegram::Bot::Types::Invoice
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::Invoice
- Defined in:
- lib/telegram/bot/types/invoice.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#description ⇒ Object
Returns the value of attribute description.
-
#start_parameter ⇒ Object
Returns the value of attribute start_parameter.
-
#title ⇒ Object
Returns the value of attribute title.
-
#total_amount ⇒ Object
Returns the value of attribute total_amount.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Invoice
constructor
A new instance of Invoice.
Constructor Details
#initialize(attributes) ⇒ Invoice
Returns a new instance of Invoice.
9 10 11 |
# File 'lib/telegram/bot/types/invoice.rb', line 9 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/telegram/bot/types/invoice.rb', line 3 def currency @currency end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/telegram/bot/types/invoice.rb', line 3 def description @description end |
#start_parameter ⇒ Object
Returns the value of attribute start_parameter.
3 4 5 |
# File 'lib/telegram/bot/types/invoice.rb', line 3 def start_parameter @start_parameter end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/telegram/bot/types/invoice.rb', line 3 def title @title end |
#total_amount ⇒ Object
Returns the value of attribute total_amount.
3 4 5 |
# File 'lib/telegram/bot/types/invoice.rb', line 3 def total_amount @total_amount end |