Class: MessageQuickly::Messaging::Receipt::Address

Inherits:
Base
  • Object
show all
Defined in:
lib/message_quickly/messaging/receipt/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from MessageQuickly::Messaging::Base

Instance Attribute Details

#cityObject

Returns the value of attribute city.



6
7
8
# File 'lib/message_quickly/messaging/receipt/address.rb', line 6

def city
  @city
end

#countryObject

Returns the value of attribute country.



6
7
8
# File 'lib/message_quickly/messaging/receipt/address.rb', line 6

def country
  @country
end

#postal_codeObject

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

#stateObject

Returns the value of attribute state.



6
7
8
# File 'lib/message_quickly/messaging/receipt/address.rb', line 6

def state
  @state
end

#street_1Object

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_2Object

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_hashObject



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