Class: Hurriyet::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(apikey) ⇒ Client

Returns a new instance of Client.



5
6
7
# File 'lib/hurriyet/client.rb', line 5

def initialize(apikey)
  @apikey = apikey
end

Instance Attribute Details

#apikeyObject

Returns the value of attribute apikey.



4
5
6
# File 'lib/hurriyet/client.rb', line 4

def apikey
  @apikey
end

Instance Method Details

#articlesObject



9
10
11
# File 'lib/hurriyet/client.rb', line 9

def articles
  Service::Article.new self
end