Class: Gogcom::News
- Inherits:
-
Object
- Object
- Gogcom::News
- Defined in:
- lib/gogcom/news.rb
Instance Method Summary collapse
-
#get ⇒ Object
Main method to get news data.
-
#initialize(options) ⇒ News
constructor
A new instance of News.
Constructor Details
#initialize(options) ⇒ News
Returns a new instance of News.
4 5 6 |
# File 'lib/gogcom/news.rb', line 4 def initialize() @limit = [:limit] || nil end |
Instance Method Details
#get ⇒ Object
Main method to get news data.
9 10 11 |
# File 'lib/gogcom/news.rb', line 9 def get() parse(fetch()) end |