Class: Hostelify

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Hostelify

Returns a new instance of Hostelify.



5
6
7
8
9
10
# File 'lib/hostelify/hostelify.rb', line 5

def initialize(options = {})
    options.each {
      |k,v|
      self.send( "#{k.to_s}=".intern, v)
    }
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



2
3
4
# File 'lib/hostelify/hostelify.rb', line 2

def address
  @address
end

#availabilityObject

Returns the value of attribute availability.



2
3
4
# File 'lib/hostelify/hostelify.rb', line 2

def availability
  @availability
end

#descriptionObject

Returns the value of attribute description.



2
3
4
# File 'lib/hostelify/hostelify.rb', line 2

def description
  @description
end

#directionsObject

Returns the value of attribute directions.



2
3
4
# File 'lib/hostelify/hostelify.rb', line 2

def directions
  @directions
end

#dormObject

Returns the value of attribute dorm.



3
4
5
# File 'lib/hostelify/hostelify.rb', line 3

def dorm
  @dorm
end

#facilitiesObject

Returns the value of attribute facilities.



2
3
4
# File 'lib/hostelify/hostelify.rb', line 2

def facilities
  @facilities
end

#geoObject

Returns the value of attribute geo.



2
3
4
# File 'lib/hostelify/hostelify.rb', line 2

def geo
  @geo
end

#hostel_idObject

Returns the value of attribute hostel_id.



2
3
4
# File 'lib/hostelify/hostelify.rb', line 2

def hostel_id
  @hostel_id
end

#imagesObject

Returns the value of attribute images.



2
3
4
# File 'lib/hostelify/hostelify.rb', line 2

def images
  @images
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/hostelify/hostelify.rb', line 2

def name
  @name
end

#ratingObject

Returns the value of attribute rating.



3
4
5
# File 'lib/hostelify/hostelify.rb', line 3

def rating
  @rating
end

#ratingsObject

Returns the value of attribute ratings.



2
3
4
# File 'lib/hostelify/hostelify.rb', line 2

def ratings
  @ratings
end

#singleObject

Returns the value of attribute single.



3
4
5
# File 'lib/hostelify/hostelify.rb', line 3

def single
  @single
end

#unavailableObject

Returns the value of attribute unavailable.



3
4
5
# File 'lib/hostelify/hostelify.rb', line 3

def unavailable
  @unavailable
end

#videoObject

Returns the value of attribute video.



2
3
4
# File 'lib/hostelify/hostelify.rb', line 2

def video
  @video
end