Class: HostelifyAvailable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bookdateObject

Returns the value of attribute bookdate.



39
40
41
# File 'lib/hostelify/hostelify.rb', line 39

def bookdate
  @bookdate
end

#nameObject

Returns the value of attribute name.



39
40
41
# File 'lib/hostelify/hostelify.rb', line 39

def name
  @name
end

#priceObject

Returns the value of attribute price.



39
40
41
# File 'lib/hostelify/hostelify.rb', line 39

def price
  @price
end

#spotsObject

Returns the value of attribute spots.



39
40
41
# File 'lib/hostelify/hostelify.rb', line 39

def spots
  @spots
end