Class: Governator::Office

Inherits:
Struct
  • Object
show all
Defined in:
lib/governator/office.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressObject

Returns the value of attribute address

Returns:

  • (Object)

    the current value of address



4
5
6
# File 'lib/governator/office.rb', line 4

def address
  @address
end

#cityObject

Returns the value of attribute city

Returns:

  • (Object)

    the current value of city



4
5
6
# File 'lib/governator/office.rb', line 4

def city
  @city
end

#faxObject

Returns the value of attribute fax

Returns:

  • (Object)

    the current value of fax



4
5
6
# File 'lib/governator/office.rb', line 4

def fax
  @fax
end

#office_typeObject

Returns the value of attribute office_type

Returns:

  • (Object)

    the current value of office_type



4
5
6
# File 'lib/governator/office.rb', line 4

def office_type
  @office_type
end

#phoneObject

Returns the value of attribute phone

Returns:

  • (Object)

    the current value of phone



4
5
6
# File 'lib/governator/office.rb', line 4

def phone
  @phone
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



4
5
6
# File 'lib/governator/office.rb', line 4

def state
  @state
end

#zipObject

Returns the value of attribute zip

Returns:

  • (Object)

    the current value of zip



4
5
6
# File 'lib/governator/office.rb', line 4

def zip
  @zip
end

Instance Method Details

#to_sObject



5
6
7
# File 'lib/governator/office.rb', line 5

def to_s
  [address, city, state, zip, phone, fax].compact.join("\n")
end