Class: HostelifyAvailable
- Inherits:
-
Object
- Object
- HostelifyAvailable
- Defined in:
- lib/hostelify/hostelify.rb
Instance Attribute Summary collapse
-
#bookdate ⇒ Object
Returns the value of attribute bookdate.
-
#name ⇒ Object
Returns the value of attribute name.
-
#price ⇒ Object
Returns the value of attribute price.
-
#spots ⇒ Object
Returns the value of attribute spots.
Instance Method Summary collapse
-
#initialize(name, price, spots, bookdate) ⇒ HostelifyAvailable
constructor
A new instance of HostelifyAvailable.
Constructor Details
#initialize(name, price, spots, bookdate) ⇒ HostelifyAvailable
Returns a new instance of HostelifyAvailable.
41 42 43 44 45 46 |
# File 'lib/hostelify/hostelify.rb', line 41 def initialize(name, price, spots, bookdate) @name = name @price = price @spots = spots @bookdate = bookdate end |
Instance Attribute Details
#bookdate ⇒ Object
Returns the value of attribute bookdate.
39 40 41 |
# File 'lib/hostelify/hostelify.rb', line 39 def bookdate @bookdate end |
#name ⇒ Object
Returns the value of attribute name.
39 40 41 |
# File 'lib/hostelify/hostelify.rb', line 39 def name @name end |
#price ⇒ Object
Returns the value of attribute price.
39 40 41 |
# File 'lib/hostelify/hostelify.rb', line 39 def price @price end |
#spots ⇒ Object
Returns the value of attribute spots.
39 40 41 |
# File 'lib/hostelify/hostelify.rb', line 39 def spots @spots end |