Class: Card

Inherits:
Object
  • Object
show all
Defined in:
lib/card.rb

Overview

Helps the ArtveeScraper class to populate the @arts array

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#artistObject (readonly)

Returns the value of attribute artist.



5
6
7
# File 'lib/card.rb', line 5

def artist
  @artist
end

#artist_detailsObject (readonly)

Returns the value of attribute artist_details.



5
6
7
# File 'lib/card.rb', line 5

def artist_details
  @artist_details
end

#dateObject (readonly)

Returns the value of attribute date.



5
6
7
# File 'lib/card.rb', line 5

def date
  @date
end

#img_urlObject (readonly)

Returns the value of attribute img_url.



5
6
7
# File 'lib/card.rb', line 5

def img_url
  @img_url
end

#tagObject (readonly)

Returns the value of attribute tag.



5
6
7
# File 'lib/card.rb', line 5

def tag
  @tag
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/card.rb', line 5

def title
  @title
end