Class: ListScraper::Store
- Inherits:
-
Object
- Object
- ListScraper::Store
- Defined in:
- lib/storeListScraper/store.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#city ⇒ Object
Returns the value of attribute city.
-
#idnum ⇒ Object
Returns the value of attribute idnum.
-
#state ⇒ Object
Returns the value of attribute state.
-
#zip ⇒ Object
Returns the value of attribute zip.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(idnum:, address:, city:, state:, zip:) ⇒ Store
constructor
A new instance of Store.
Constructor Details
#initialize(idnum:, address:, city:, state:, zip:) ⇒ Store
Returns a new instance of Store.
6 7 8 9 10 11 12 13 |
# File 'lib/storeListScraper/store.rb', line 6 def initialize(idnum:,address:,city:,state:,zip:) @idnum = idnum @address = address @city = city @state = state @zip = zip @@all << self end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
3 4 5 |
# File 'lib/storeListScraper/store.rb', line 3 def address @address end |
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/storeListScraper/store.rb', line 3 def city @city end |
#idnum ⇒ Object
Returns the value of attribute idnum.
3 4 5 |
# File 'lib/storeListScraper/store.rb', line 3 def idnum @idnum end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/storeListScraper/store.rb', line 3 def state @state end |
#zip ⇒ Object
Returns the value of attribute zip.
3 4 5 |
# File 'lib/storeListScraper/store.rb', line 3 def zip @zip end |
Class Method Details
.all ⇒ Object
15 16 17 |
# File 'lib/storeListScraper/store.rb', line 15 def self.all @@all end |