Class: Messenger::Elements::Address
- Inherits:
-
Object
- Object
- Messenger::Elements::Address
- Includes:
- Components::Element
- Defined in:
- lib/messenger/components/elements/receipt/address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#state ⇒ Object
Returns the value of attribute state.
-
#street_1 ⇒ Object
Returns the value of attribute street_1.
-
#street_2 ⇒ Object
Returns the value of attribute street_2.
Instance Method Summary collapse
-
#initialize(street_1:, street_2: nil, city:, postal_code:, state:, country:) ⇒ Address
constructor
A new instance of Address.
Methods included from Components::Element
Constructor Details
#initialize(street_1:, street_2: nil, city:, postal_code:, state:, country:) ⇒ Address
Returns a new instance of Address.
10 11 12 13 14 15 16 17 |
# File 'lib/messenger/components/elements/receipt/address.rb', line 10 def initialize(street_1:, street_2: nil, city:, postal_code:, state:, country:) @street_1 = street_1 @street_2 = street_2 @city = city @postal_code = postal_code @state = state @country = country end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
8 9 10 |
# File 'lib/messenger/components/elements/receipt/address.rb', line 8 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
8 9 10 |
# File 'lib/messenger/components/elements/receipt/address.rb', line 8 def country @country end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
8 9 10 |
# File 'lib/messenger/components/elements/receipt/address.rb', line 8 def postal_code @postal_code end |
#state ⇒ Object
Returns the value of attribute state.
8 9 10 |
# File 'lib/messenger/components/elements/receipt/address.rb', line 8 def state @state end |
#street_1 ⇒ Object
Returns the value of attribute street_1.
8 9 10 |
# File 'lib/messenger/components/elements/receipt/address.rb', line 8 def street_1 @street_1 end |
#street_2 ⇒ Object
Returns the value of attribute street_2.
8 9 10 |
# File 'lib/messenger/components/elements/receipt/address.rb', line 8 def street_2 @street_2 end |