Class: CSKit::Parsers::ScienceHealth::Citation
- Inherits:
-
Struct
- Object
- Struct
- CSKit::Parsers::ScienceHealth::Citation
- Defined in:
- lib/cskit/parsers/science_health/science_health_parser.rb
Instance Attribute Summary collapse
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#page ⇒ Object
Returns the value of attribute page.
Instance Method Summary collapse
Instance Attribute Details
#lines ⇒ Object
Returns the value of attribute lines
9 10 11 |
# File 'lib/cskit/parsers/science_health/science_health_parser.rb', line 9 def lines @lines end |
#page ⇒ Object
Returns the value of attribute page
9 10 11 |
# File 'lib/cskit/parsers/science_health/science_health_parser.rb', line 9 def page @page end |
Instance Method Details
#to_hash ⇒ Object
14 15 16 17 18 19 |
# File 'lib/cskit/parsers/science_health/science_health_parser.rb', line 14 def to_hash { page: page, lines: lines.map(&:to_hash) } end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/cskit/parsers/science_health/science_health_parser.rb', line 10 def to_s "#{page}:#{lines.map(&:to_s).join(", ")}" end |