Class: Hdo::StortingImporter::Vote::Counts

Inherits:
Struct
  • Object
show all
Defined in:
lib/hdo/storting_importer/vote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#absentObject

Returns the value of attribute absent

Returns:

  • (Object)

    the current value of absent



158
159
160
# File 'lib/hdo/storting_importer/vote.rb', line 158

def absent
  @absent
end

#againstObject

Returns the value of attribute against

Returns:

  • (Object)

    the current value of against



158
159
160
# File 'lib/hdo/storting_importer/vote.rb', line 158

def against
  @against
end

#forObject

Returns the value of attribute for

Returns:

  • (Object)

    the current value of for



158
159
160
# File 'lib/hdo/storting_importer/vote.rb', line 158

def for
  @for
end

Instance Method Details

#to_hashObject



159
160
161
162
163
164
165
# File 'lib/hdo/storting_importer/vote.rb', line 159

def to_hash
  {
    'for'     => self.for,
    'against' => against,
    'absent'  => absent
  }
end