Sha256: f222f3878abfa046c4c7ee75e8cab05abf8041d1aa04c6579f8fe9de1743b77f

Contents?: true

Size: 335 Bytes

Versions: 7

Compression:

Stored size: 335 Bytes

Contents

module VoteSmart
  
  class CandidateOffice < Common
    
    attr_accessor :address, :phone, :notes
    
    def initialize attributes
      self.address = Address.new(attributes["address"] || {})
      self.phone = Phone.new(attributes["phone"] || {})
      self.notes = Notes.new(attributes["notes"] || {})
    end
    
  end
  
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
netroots-ruby-votesmart-0.2.4 lib/vote_smart/candidate_office.rb
votesmart-0.4.1 lib/vote_smart/candidate_office.rb
votesmart-0.4.0 lib/vote_smart/candidate_office.rb
votesmart-0.3.3 lib/vote_smart/candidate_office.rb
votesmart-0.3.2 lib/vote_smart/candidate_office.rb
votesmart-0.3.1 lib/vote_smart/candidate_office.rb
votesmart-0.3.0 lib/vote_smart/candidate_office.rb