Class: Messenger::Elements::Address

Inherits:
Components::Element show all
Defined in:
lib/messenger/components/elements/receipt/address.rb

Instance Method Summary collapse

Methods inherited from Components::Element

#build

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