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