Class: Governator::Office
- Inherits:
-
Struct
- Object
- Struct
- Governator::Office
- Defined in:
- lib/governator/office.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#city ⇒ Object
Returns the value of attribute city.
-
#fax ⇒ Object
Returns the value of attribute fax.
-
#office_type ⇒ Object
Returns the value of attribute office_type.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#state ⇒ Object
Returns the value of attribute state.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address
4 5 6 |
# File 'lib/governator/office.rb', line 4 def address @address end |
#city ⇒ Object
Returns the value of attribute city
4 5 6 |
# File 'lib/governator/office.rb', line 4 def city @city end |
#fax ⇒ Object
Returns the value of attribute fax
4 5 6 |
# File 'lib/governator/office.rb', line 4 def fax @fax end |
#office_type ⇒ Object
Returns the value of attribute office_type
4 5 6 |
# File 'lib/governator/office.rb', line 4 def office_type @office_type end |
#phone ⇒ Object
Returns the value of attribute phone
4 5 6 |
# File 'lib/governator/office.rb', line 4 def phone @phone end |
#state ⇒ Object
Returns the value of attribute state
4 5 6 |
# File 'lib/governator/office.rb', line 4 def state @state end |
#zip ⇒ Object
Returns the value of attribute zip
4 5 6 |
# File 'lib/governator/office.rb', line 4 def zip @zip end |
Instance Method Details
#to_s ⇒ Object
5 6 7 |
# File 'lib/governator/office.rb', line 5 def to_s [address, city, state, zip, phone, fax].compact.join("\n") end |