Class: Google::Civic::Official

Inherits:
Representation show all
Defined in:
lib/google-civic/official.rb

Instance Method Summary collapse

Methods inherited from Representation

has_many, #initialize

Constructor Details

This class inherits a constructor from Google::Civic::Representation

Instance Method Details

#addressObject



4
5
# File 'lib/google-civic/official.rb', line 4

def address
end

#addressesObject



7
8
9
# File 'lib/google-civic/official.rb', line 7

def addresses
  @__addresses ||= self["address"].map { |address| Address.new(address) }
end

#channelsObject



11
12
13
# File 'lib/google-civic/official.rb', line 11

def channels
  @__channels ||= self["channels"].map { |channel| channel_class.new(channel) }
end