Class: Card
- Inherits:
-
Object
- Object
- Card
- Defined in:
- lib/card.rb
Overview
Helps the ArtveeScraper class to populate the @arts array
Instance Attribute Summary collapse
-
#artist ⇒ Object
readonly
Returns the value of attribute artist.
-
#artist_details ⇒ Object
readonly
Returns the value of attribute artist_details.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#img_url ⇒ Object
readonly
Returns the value of attribute img_url.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(html_obj) ⇒ Card
constructor
A new instance of Card.
Constructor Details
#initialize(html_obj) ⇒ Card
Returns a new instance of Card.
7 8 9 10 11 12 13 14 |
# File 'lib/card.rb', line 7 def initialize(html_obj) @html_obj = html_obj set_img_url set_date_and_title set_artist set_artist_details set_tag end |
Instance Attribute Details
#artist ⇒ Object (readonly)
Returns the value of attribute artist.
5 6 7 |
# File 'lib/card.rb', line 5 def artist @artist end |
#artist_details ⇒ Object (readonly)
Returns the value of attribute artist_details.
5 6 7 |
# File 'lib/card.rb', line 5 def artist_details @artist_details end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
5 6 7 |
# File 'lib/card.rb', line 5 def date @date end |
#img_url ⇒ Object (readonly)
Returns the value of attribute img_url.
5 6 7 |
# File 'lib/card.rb', line 5 def img_url @img_url end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
5 6 7 |
# File 'lib/card.rb', line 5 def tag @tag end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/card.rb', line 5 def title @title end |