Class: DMMCrawler::Client
- Inherits:
-
Object
- Object
- DMMCrawler::Client
- Defined in:
- lib/dmm-crawler/client.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
Returns the value of attribute agent.
Instance Method Summary collapse
- #adult_game_rankings(arguments) ⇒ Object
- #affiliateable?(url) ⇒ Boolean
- #get_attributes(url) ⇒ Object
-
#initialize {|@agent| ... } ⇒ Client
constructor
A new instance of Client.
- #rankings(arguments) ⇒ Object
Constructor Details
Instance Attribute Details
#agent ⇒ Object
Returns the value of attribute agent.
5 6 7 |
# File 'lib/dmm-crawler/client.rb', line 5 def agent @agent end |
Instance Method Details
#adult_game_rankings(arguments) ⇒ Object
17 18 19 |
# File 'lib/dmm-crawler/client.rb', line 17 def adult_game_rankings(arguments) Ranking::AdultGameRanking.new(arguments.merge!(agent: @agent)).arts end |
#affiliateable?(url) ⇒ Boolean
25 26 27 |
# File 'lib/dmm-crawler/client.rb', line 25 def affiliateable?(url) Attributes::DojinAttributes.new(url, agent: @agent).affiliateable? end |
#get_attributes(url) ⇒ Object
21 22 23 |
# File 'lib/dmm-crawler/client.rb', line 21 def get_attributes(url) Attributes::DojinAttributes.new(url, agent: @agent).to_a end |
#rankings(arguments) ⇒ Object
13 14 15 |
# File 'lib/dmm-crawler/client.rb', line 13 def rankings(arguments) Ranking::DojinRanking.new(arguments.merge!(agent: @agent)).arts end |