Class: Hdo::StortingImporter::Vote::Counts
- Inherits:
-
Struct
- Object
- Struct
- Hdo::StortingImporter::Vote::Counts
- Defined in:
- lib/hdo/storting_importer/vote.rb
Instance Attribute Summary collapse
-
#absent ⇒ Object
Returns the value of attribute absent.
-
#against ⇒ Object
Returns the value of attribute against.
-
#for ⇒ Object
Returns the value of attribute for.
Instance Method Summary collapse
Instance Attribute Details
#absent ⇒ Object
Returns the value of attribute absent
158 159 160 |
# File 'lib/hdo/storting_importer/vote.rb', line 158 def absent @absent end |
#against ⇒ Object
Returns the value of attribute against
158 159 160 |
# File 'lib/hdo/storting_importer/vote.rb', line 158 def against @against end |
#for ⇒ Object
Returns the value of attribute for
158 159 160 |
# File 'lib/hdo/storting_importer/vote.rb', line 158 def for @for end |
Instance Method Details
#to_hash ⇒ Object
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 |