Class: DMMCrawler::Attributes
- Inherits:
-
Object
- Object
- DMMCrawler::Attributes
- Defined in:
- lib/dmm-crawler/attributes.rb
Instance Method Summary collapse
-
#initialize(url) ⇒ Attributes
constructor
A new instance of Attributes.
- #to_a ⇒ Object
Constructor Details
#initialize(url) ⇒ Attributes
3 4 5 |
# File 'lib/dmm-crawler/attributes.rb', line 3 def initialize(url) @page = Agent.instance.agent.get(url) end |
Instance Method Details
#to_a ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/dmm-crawler/attributes.rb', line 7 def to_a [ title, title_link, image_url, submedia, , informations, ] end |