Class: Boss::News::Result
- Inherits:
-
Object
- Object
- Boss::News::Result
- Defined in:
- lib/boss.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
- #abstract ⇒ Object
- #clickurl ⇒ Object
- #date ⇒ Object
-
#initialize(r) ⇒ Result
constructor
A new instance of Result.
- #language ⇒ Object
- #source ⇒ Object
- #sourceurl ⇒ Object
- #time ⇒ Object
- #title ⇒ Object
- #url ⇒ Object
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
#result ⇒ Object
Returns the value of attribute result.
170 171 172 |
# File 'lib/boss.rb', line 170 def result @result end |
Instance Method Details
#abstract ⇒ Object
176 177 178 |
# File 'lib/boss.rb', line 176 def abstract @result['abstract'] end |
#clickurl ⇒ Object
180 181 182 |
# File 'lib/boss.rb', line 180 def clickurl @result['clickurl'] end |
#date ⇒ Object
184 185 186 |
# File 'lib/boss.rb', line 184 def date @result['date'] end |
#language ⇒ Object
188 189 190 |
# File 'lib/boss.rb', line 188 def language @result['language'] end |
#source ⇒ Object
192 193 194 |
# File 'lib/boss.rb', line 192 def source @result['source'] end |
#sourceurl ⇒ Object
196 197 198 |
# File 'lib/boss.rb', line 196 def sourceurl @result['sourceurl'] end |
#time ⇒ Object
200 201 202 |
# File 'lib/boss.rb', line 200 def time @result['time'] end |
#title ⇒ Object
204 205 206 |
# File 'lib/boss.rb', line 204 def title @result['title'] end |
#url ⇒ Object
208 209 210 |
# File 'lib/boss.rb', line 208 def url @result['url'] end |