Class: Telegram::Bot::Types::ShippingAddress
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::ShippingAddress
- Defined in:
- lib/telegram/bot/types/shipping_address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#post_code ⇒ Object
Returns the value of attribute post_code.
-
#state ⇒ Object
Returns the value of attribute state.
-
#street_line1 ⇒ Object
Returns the value of attribute street_line1.
-
#street_line2 ⇒ Object
Returns the value of attribute street_line2.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ ShippingAddress
constructor
A new instance of ShippingAddress.
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
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/telegram/bot/types/shipping_address.rb', line 3 def city @city end |
#country_code ⇒ Object
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_code ⇒ Object
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 |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/telegram/bot/types/shipping_address.rb', line 3 def state @state end |
#street_line1 ⇒ Object
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_line2 ⇒ Object
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 |