Class: Postino::Form::Address
- Inherits:
-
Object
- Object
- Postino::Form::Address
- Defined in:
- lib/postino/form/address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#state ⇒ Object
Returns the value of attribute state.
-
#street ⇒ Object
Returns the value of attribute street.
-
#zip_code ⇒ Object
Returns the value of attribute zip_code.
Instance Method Summary collapse
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
4 5 6 |
# File 'lib/postino/form/address.rb', line 4 def city @city end |
#state ⇒ Object
Returns the value of attribute state.
4 5 6 |
# File 'lib/postino/form/address.rb', line 4 def state @state end |
#street ⇒ Object
Returns the value of attribute street.
4 5 6 |
# File 'lib/postino/form/address.rb', line 4 def street @street end |
#zip_code ⇒ Object
Returns the value of attribute zip_code.
4 5 6 |
# File 'lib/postino/form/address.rb', line 4 def zip_code @zip_code end |
Instance Method Details
#location ⇒ Object
6 7 8 |
# File 'lib/postino/form/address.rb', line 6 def location "#{city} (#{state})" end |