Class: Telegram::Bot::Types::OrderInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#phone_numberObject

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_addressObject

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