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



11
12
13
# File 'lib/hurriyet/client.rb', line 11

def initialize(apikey)
  @apikey = apikey
end

Instance Attribute Details

#apikeyObject

Returns the value of attribute apikey.



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

def apikey
  @apikey
end

Instance Method Details

#articlesObject



15
16
17
# File 'lib/hurriyet/client.rb', line 15

def articles
  Service::Article.new self
end

#columnsObject



19
20
21
# File 'lib/hurriyet/client.rb', line 19

def columns
  Service::Column.new self
end

#news_photo_galleriesObject



23
24
25
# File 'lib/hurriyet/client.rb', line 23

def news_photo_galleries
  Service::NewsPhotoGallery.new self
end

#pagesObject



27
28
29
# File 'lib/hurriyet/client.rb', line 27

def pages
  Service::Page.new self
end

#pathsObject



31
32
33
# File 'lib/hurriyet/client.rb', line 31

def paths
  Service::Path.new self
end

#writersObject



35
36
37
# File 'lib/hurriyet/client.rb', line 35

def writers
  Service::Writer.new self
end