Class: Telegram::Bot::Types::PreCheckoutQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ PreCheckoutQuery

Returns a new instance of PreCheckoutQuery.



11
12
13
# File 'lib/telegram/bot/types/pre_checkout_query.rb', line 11

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/pre_checkout_query.rb', line 3

def currency
  @currency
end

#fromObject

Returns the value of attribute from.



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

def from
  @from
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#invoice_payloadObject

Returns the value of attribute invoice_payload.



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

def invoice_payload
  @invoice_payload
end

#order_infoObject

Returns the value of attribute order_info.



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

def order_info
  @order_info
end

#shipping_option_idObject

Returns the value of attribute shipping_option_id.



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

def shipping_option_id
  @shipping_option_id
end

#total_amountObject

Returns the value of attribute total_amount.



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

def total_amount
  @total_amount
end