Class: Summon::Citation

Inherits:
Schema show all
Defined in:
lib/summon/schema/citation.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Schema

inherited

Instance Attribute Details

#captionObject (readonly)

Returns the value of attribute caption.



5
6
7
# File 'lib/summon/schema/citation.rb', line 5

def caption
  @caption
end

#labelObject (readonly)

Returns the value of attribute label.



3
4
5
# File 'lib/summon/schema/citation.rb', line 3

def label
  @label
end

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/summon/schema/citation.rb', line 2

def name
  @name
end

#short_nameObject (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

#textObject (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