Class: R4DigitalNZ::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/r4digitalnz.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoryObject

Returns the value of attribute category.



88
89
90
# File 'lib/r4digitalnz.rb', line 88

def category
  @category
end

#content_providerObject

Returns the value of attribute content_provider.



89
90
91
# File 'lib/r4digitalnz.rb', line 89

def content_provider
  @content_provider
end

#dateObject

Returns the value of attribute date.



90
91
92
# File 'lib/r4digitalnz.rb', line 90

def date
  @date
end

#descriptionObject

Returns the value of attribute description.



91
92
93
# File 'lib/r4digitalnz.rb', line 91

def description
  @description
end

#display_urlObject

Returns the value of attribute display_url.



92
93
94
# File 'lib/r4digitalnz.rb', line 92

def display_url
  @display_url
end

#idObject

Returns the value of attribute id.



93
94
95
# File 'lib/r4digitalnz.rb', line 93

def id
  @id
end

#metadata_urlObject

Returns the value of attribute metadata_url.



94
95
96
# File 'lib/r4digitalnz.rb', line 94

def 
  @metadata_url
end

#source_urlObject

Returns the value of attribute source_url.



95
96
97
# File 'lib/r4digitalnz.rb', line 95

def source_url
  @source_url
end

#syndication_dateObject

Returns the value of attribute syndication_date.



97
98
99
# File 'lib/r4digitalnz.rb', line 97

def syndication_date
  @syndication_date
end

#thumbnail_urlObject

Returns the value of attribute thumbnail_url.



96
97
98
# File 'lib/r4digitalnz.rb', line 96

def thumbnail_url
  @thumbnail_url
end

#titleObject

Returns the value of attribute title.



87
88
89
# File 'lib/r4digitalnz.rb', line 87

def title
  @title
end