Class: MessageQuickly::Messaging::Receipt::Address
- Defined in:
- lib/message_quickly/messaging/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
Methods inherited from Base
Constructor Details
This class inherits a constructor from MessageQuickly::Messaging::Base
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/address.rb', line 6 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/address.rb', line 6 def country @country end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/address.rb', line 6 def postal_code @postal_code end |
#state ⇒ Object
Returns the value of attribute state.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/address.rb', line 6 def state @state end |
#street_1 ⇒ Object
Returns the value of attribute street_1.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/address.rb', line 6 def street_1 @street_1 end |
#street_2 ⇒ Object
Returns the value of attribute street_2.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/address.rb', line 6 def street_2 @street_2 end |
Instance Method Details
#to_hash ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/message_quickly/messaging/receipt/address.rb', line 8 def to_hash { street_1: street_1, street_2: street_2, city: city, postal_code: postal_code, state: state, country: country } end |