Class: HurriyetCli::Columns
- Inherits:
-
Object
- Object
- HurriyetCli::Columns
- Defined in:
- lib/hurriyet_cli/columns.rb
Class Method Summary collapse
Class Method Details
.fetch ⇒ Object
3 4 5 6 7 |
# File 'lib/hurriyet_cli/columns.rb', line 3 def self.fetch client = Hurriyet::Client.new(ENV["API_KEY"]) columns = client.columns.all formated_parse(columns) end |
.top_columns(top) ⇒ Object
9 10 11 12 13 |
# File 'lib/hurriyet_cli/columns.rb', line 9 def self.top_columns(top) client = Hurriyet::Client.new(ENV["API_KEY"]) columns = client.columns.all top: top formated_parse(columns) end |