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



156
157
158
# File 'lib/hdo/storting_importer/vote.rb', line 156

def absent
  @absent
end

#againstObject

Returns the value of attribute against

Returns:

  • (Object)

    the current value of against



156
157
158
# File 'lib/hdo/storting_importer/vote.rb', line 156

def against
  @against
end

#forObject

Returns the value of attribute for

Returns:

  • (Object)

    the current value of for



156
157
158
# File 'lib/hdo/storting_importer/vote.rb', line 156

def for
  @for
end

Instance Method Details

#to_hashObject



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

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