Class: R4DigitalNZ::Result
- Inherits:
-
Object
- Object
- R4DigitalNZ::Result
- Defined in:
- lib/r4digitalnz.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#content_provider ⇒ Object
Returns the value of attribute content_provider.
-
#date ⇒ Object
Returns the value of attribute date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#display_url ⇒ Object
Returns the value of attribute display_url.
-
#id ⇒ Object
Returns the value of attribute id.
-
#metadata_url ⇒ Object
Returns the value of attribute metadata_url.
-
#source_url ⇒ Object
Returns the value of attribute source_url.
-
#syndication_date ⇒ Object
Returns the value of attribute syndication_date.
-
#thumbnail_url ⇒ Object
Returns the value of attribute thumbnail_url.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(res) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(res) ⇒ Result
Returns a new instance of Result.
99 100 101 102 103 |
# File 'lib/r4digitalnz.rb', line 99 def initialize res res.each do |k,v| self.send("#{k.gsub('-', '_').to_sym}=", v) end end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
88 89 90 |
# File 'lib/r4digitalnz.rb', line 88 def category @category end |
#content_provider ⇒ Object
Returns the value of attribute content_provider.
89 90 91 |
# File 'lib/r4digitalnz.rb', line 89 def content_provider @content_provider end |
#date ⇒ Object
Returns the value of attribute date.
90 91 92 |
# File 'lib/r4digitalnz.rb', line 90 def date @date end |
#description ⇒ Object
Returns the value of attribute description.
91 92 93 |
# File 'lib/r4digitalnz.rb', line 91 def description @description end |
#display_url ⇒ Object
Returns the value of attribute display_url.
92 93 94 |
# File 'lib/r4digitalnz.rb', line 92 def display_url @display_url end |
#id ⇒ Object
Returns the value of attribute id.
93 94 95 |
# File 'lib/r4digitalnz.rb', line 93 def id @id end |
#metadata_url ⇒ Object
Returns the value of attribute metadata_url.
94 95 96 |
# File 'lib/r4digitalnz.rb', line 94 def @metadata_url end |
#source_url ⇒ Object
Returns the value of attribute source_url.
95 96 97 |
# File 'lib/r4digitalnz.rb', line 95 def source_url @source_url end |
#syndication_date ⇒ Object
Returns the value of attribute syndication_date.
97 98 99 |
# File 'lib/r4digitalnz.rb', line 97 def @syndication_date end |
#thumbnail_url ⇒ Object
Returns the value of attribute thumbnail_url.
96 97 98 |
# File 'lib/r4digitalnz.rb', line 96 def thumbnail_url @thumbnail_url end |
#title ⇒ Object
Returns the value of attribute title.
87 88 89 |
# File 'lib/r4digitalnz.rb', line 87 def title @title end |