Class: Telegram::Bot::Types::ShippingQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ ShippingQuery

Returns a new instance of ShippingQuery.



8
9
10
# File 'lib/telegram/bot/types/shipping_query.rb', line 8

def initialize(attributes)
  attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k }
end

Instance Attribute Details

#fromObject

Returns the value of attribute from.



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

def from
  @from
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/telegram/bot/types/shipping_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/shipping_query.rb', line 3

def invoice_payload
  @invoice_payload
end

#shipping_addressObject

Returns the value of attribute shipping_address.



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

def shipping_address
  @shipping_address
end