class CtGov::Location
Public Class Methods
new(raw_location)
click to toggle source
# File lib/ct_gov/location.rb, line 4 def initialize(raw_location) @raw_location = raw_location end
Public Instance Methods
contact()
click to toggle source
# File lib/ct_gov/location.rb, line 8 def contact Contact.new(@raw_location['contact']) unless @raw_location['contact'].nil? end
contact_backup()
click to toggle source
# File lib/ct_gov/location.rb, line 12 def contact_backup Contact.new(@raw_location['contact_backup']) unless @raw_location['contact_backup'].nil? end
facility()
click to toggle source
# File lib/ct_gov/location.rb, line 16 def facility Facility.new(@raw_location['facility']) unless @raw_location['facility'].nil? end
investigators()
click to toggle source
# File lib/ct_gov/location.rb, line 20 def investigators [@raw_location['investigator']].flatten.map do |investigator| Investigator.new(investigator) unless investigator.nil? end end
status()
click to toggle source
# File lib/ct_gov/location.rb, line 26 def status @raw_location['status'] end