Class: Boss::News::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(r) ⇒ Result

Returns a new instance of Result.



172
173
174
# File 'lib/boss.rb', line 172

def initialize(r)
  @result = r
end

Instance Attribute Details

#resultObject

Returns the value of attribute result.



170
171
172
# File 'lib/boss.rb', line 170

def result
  @result
end

Instance Method Details

#abstractObject



176
177
178
# File 'lib/boss.rb', line 176

def abstract
  @result['abstract']
end

#clickurlObject



180
181
182
# File 'lib/boss.rb', line 180

def clickurl
  @result['clickurl']
end

#dateObject



184
185
186
# File 'lib/boss.rb', line 184

def date
  @result['date']
end

#languageObject



188
189
190
# File 'lib/boss.rb', line 188

def language
  @result['language']
end

#sourceObject



192
193
194
# File 'lib/boss.rb', line 192

def source
  @result['source']
end

#sourceurlObject



196
197
198
# File 'lib/boss.rb', line 196

def sourceurl
  @result['sourceurl']
end

#timeObject



200
201
202
# File 'lib/boss.rb', line 200

def time
  @result['time']
end

#titleObject



204
205
206
# File 'lib/boss.rb', line 204

def title
  @result['title']
end

#urlObject



208
209
210
# File 'lib/boss.rb', line 208

def url
  @result['url']
end