Class: Telegram::Bot::Types::ShippingQuery
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::ShippingQuery
- Defined in:
- lib/telegram/bot/types/shipping_query.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invoice_payload ⇒ Object
Returns the value of attribute invoice_payload.
-
#shipping_address ⇒ Object
Returns the value of attribute shipping_address.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ ShippingQuery
constructor
A new instance of ShippingQuery.
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
#from ⇒ Object
Returns the value of attribute from.
3 4 5 |
# File 'lib/telegram/bot/types/shipping_query.rb', line 3 def from @from end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/telegram/bot/types/shipping_query.rb', line 3 def id @id end |
#invoice_payload ⇒ Object
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_address ⇒ Object
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 |