Class: Hurriyet::Client
- Inherits:
-
Object
- Object
- Hurriyet::Client
- Defined in:
- lib/hurriyet/client.rb
Instance Attribute Summary collapse
-
#apikey ⇒ Object
Returns the value of attribute apikey.
Instance Method Summary collapse
- #articles ⇒ Object
- #columns ⇒ Object
-
#initialize(apikey) ⇒ Client
constructor
A new instance of Client.
- #news_photo_galleries ⇒ Object
- #pages ⇒ Object
- #paths ⇒ Object
- #writers ⇒ Object
Constructor Details
#initialize(apikey) ⇒ Client
11 12 13 |
# File 'lib/hurriyet/client.rb', line 11 def initialize(apikey) @apikey = apikey end |
Instance Attribute Details
#apikey ⇒ Object
Returns the value of attribute apikey.
10 11 12 |
# File 'lib/hurriyet/client.rb', line 10 def apikey @apikey end |
Instance Method Details
#articles ⇒ Object
15 16 17 |
# File 'lib/hurriyet/client.rb', line 15 def articles Service::Article.new self end |
#columns ⇒ Object
19 20 21 |
# File 'lib/hurriyet/client.rb', line 19 def columns Service::Column.new self end |
#news_photo_galleries ⇒ Object
23 24 25 |
# File 'lib/hurriyet/client.rb', line 23 def news_photo_galleries Service::NewsPhotoGallery.new self end |
#pages ⇒ Object
27 28 29 |
# File 'lib/hurriyet/client.rb', line 27 def pages Service::Page.new self end |
#paths ⇒ Object
31 32 33 |
# File 'lib/hurriyet/client.rb', line 31 def paths Service::Path.new self end |
#writers ⇒ Object
35 36 37 |
# File 'lib/hurriyet/client.rb', line 35 def writers Service::Writer.new self end |