Class: Telegram::Bot::Types::ShippingAddress

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ ShippingAddress

Returns a new instance of ShippingAddress.



10
11
12
# File 'lib/telegram/bot/types/shipping_address.rb', line 10

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

Instance Attribute Details

#cityObject

Returns the value of attribute city.



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

def city
  @city
end

#country_codeObject

Returns the value of attribute country_code.



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

def country_code
  @country_code
end

#post_codeObject

Returns the value of attribute post_code.



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

def post_code
  @post_code
end

#stateObject

Returns the value of attribute state.



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

def state
  @state
end

#street_line1Object

Returns the value of attribute street_line1.



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

def street_line1
  @street_line1
end

#street_line2Object

Returns the value of attribute street_line2.



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

def street_line2
  @street_line2
end