Class: Messenger::Elements::Address
- Inherits:
-
Components::Element
- Object
- Components::Element
- Messenger::Elements::Address
- Defined in:
- lib/messenger/components/elements/receipt/address.rb
Instance Method Summary collapse
-
#initialize(street_1:, street_2: nil, city:, postal_code:, state:, country:) ⇒ Address
constructor
A new instance of Address.
Methods inherited from Components::Element
Constructor Details
#initialize(street_1:, street_2: nil, city:, postal_code:, state:, country:) ⇒ Address
Returns a new instance of Address.
6 7 8 9 10 11 12 13 |
# File 'lib/messenger/components/elements/receipt/address.rb', line 6 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 |