Class: Summon::Citation
Instance Attribute Summary collapse
-
#caption ⇒ Object
readonly
Returns the value of attribute caption.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#short_name ⇒ Object
readonly
Returns the value of attribute short_name.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Class Method Summary collapse
Methods inherited from Schema
Instance Attribute Details
#caption ⇒ Object (readonly)
Returns the value of attribute caption.
5 6 7 |
# File 'lib/summon/schema/citation.rb', line 5 def @caption end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
3 4 5 |
# File 'lib/summon/schema/citation.rb', line 3 def label @label end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/summon/schema/citation.rb', line 2 def name @name end |
#short_name ⇒ Object (readonly)
Returns the value of attribute short_name.
4 5 6 |
# File 'lib/summon/schema/citation.rb', line 4 def short_name @short_name end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
6 7 8 |
# File 'lib/summon/schema/citation.rb', line 6 def text @text end |
Class Method Details
.parse_results(results) ⇒ Object
8 9 10 |
# File 'lib/summon/schema/citation.rb', line 8 def self.parse_results(results) results["Results"]["Citations"]["Citation"].map {|result| new(@service, result) } end |