class CivicInformation::RepresentativesResource::Address

Attributes

city[RW]
line_one[RW]
line_three[RW]
line_two[RW]
location_name[RW]
state[RW]
zip[RW]

Public Class Methods

new(address_json) click to toggle source
# File lib/civic_information/models/representatives_resource/address.rb, line 6
def initialize(address_json)
  @location_name = address_json["locationName"]
  @line_one = address_json["line1"]
  @line_two = address_json["line2"]
  @line_three = address_json["line3"]
  @city = address_json["city"]
  @state = address_json["state"]
  @zip = address_json["zip"]
end