Class: Telegram::Bot::Types::Invoice

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/types/invoice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#currencyObject

Returns the value of attribute currency.



3
4
5
# File 'lib/telegram/bot/types/invoice.rb', line 3

def currency
  @currency
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/telegram/bot/types/invoice.rb', line 3

def description
  @description
end

#start_parameterObject

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

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/telegram/bot/types/invoice.rb', line 3

def title
  @title
end

#total_amountObject

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