class Lobbyliste::List

This class represents an instance of the parsed lobbylist.

Attributes

abbreviations[R]

@return [Hash] keys are the abbreviations, values are Arrays of organisation ids

last_update[R]

@return [Date] the date when the document was last updated

organisations[R]

@return [Array] list of organisations

tags[R]

@return [Hash] keys are the tags, values are Arrays of organisation ids

Public Class Methods

new(organisations, tags, abbreviations, last_update) click to toggle source
# File lib/lobbyliste/list.rb, line 18
def initialize(organisations, tags, abbreviations, last_update)
  @organisations = organisations
  @tags=tags
  @abbreviations = abbreviations
  @last_update = last_update
end

Public Instance Methods

to_json(*a) click to toggle source
# File lib/lobbyliste/list.rb, line 25
def to_json(*a)
  {
      organisations: organisations,
      tags: tags,
      abbreviations: abbreviations,
      last_update: last_update
  }.to_json(*a)
end