Class: Hostelify
- Inherits:
-
Object
- Object
- Hostelify
- Defined in:
- lib/hostelify/hostelify.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#availability ⇒ Object
Returns the value of attribute availability.
-
#description ⇒ Object
Returns the value of attribute description.
-
#directions ⇒ Object
Returns the value of attribute directions.
-
#dorm ⇒ Object
Returns the value of attribute dorm.
-
#facilities ⇒ Object
Returns the value of attribute facilities.
-
#geo ⇒ Object
Returns the value of attribute geo.
-
#hostel_id ⇒ Object
Returns the value of attribute hostel_id.
-
#images ⇒ Object
Returns the value of attribute images.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#ratings ⇒ Object
Returns the value of attribute ratings.
-
#single ⇒ Object
Returns the value of attribute single.
-
#unavailable ⇒ Object
Returns the value of attribute unavailable.
-
#video ⇒ Object
Returns the value of attribute video.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Hostelify
constructor
A new instance of Hostelify.
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( = {}) .each { |k,v| self.send( "#{k.to_s}=".intern, v) } end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
2 3 4 |
# File 'lib/hostelify/hostelify.rb', line 2 def address @address end |
#availability ⇒ Object
Returns the value of attribute availability.
2 3 4 |
# File 'lib/hostelify/hostelify.rb', line 2 def availability @availability end |
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'lib/hostelify/hostelify.rb', line 2 def description @description end |
#directions ⇒ Object
Returns the value of attribute directions.
2 3 4 |
# File 'lib/hostelify/hostelify.rb', line 2 def directions @directions end |
#dorm ⇒ Object
Returns the value of attribute dorm.
3 4 5 |
# File 'lib/hostelify/hostelify.rb', line 3 def dorm @dorm end |
#facilities ⇒ Object
Returns the value of attribute facilities.
2 3 4 |
# File 'lib/hostelify/hostelify.rb', line 2 def facilities @facilities end |
#geo ⇒ Object
Returns the value of attribute geo.
2 3 4 |
# File 'lib/hostelify/hostelify.rb', line 2 def geo @geo end |
#hostel_id ⇒ Object
Returns the value of attribute hostel_id.
2 3 4 |
# File 'lib/hostelify/hostelify.rb', line 2 def hostel_id @hostel_id end |
#images ⇒ Object
Returns the value of attribute images.
2 3 4 |
# File 'lib/hostelify/hostelify.rb', line 2 def images @images end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/hostelify/hostelify.rb', line 2 def name @name end |
#rating ⇒ Object
Returns the value of attribute rating.
3 4 5 |
# File 'lib/hostelify/hostelify.rb', line 3 def end |
#ratings ⇒ Object
Returns the value of attribute ratings.
2 3 4 |
# File 'lib/hostelify/hostelify.rb', line 2 def end |
#single ⇒ Object
Returns the value of attribute single.
3 4 5 |
# File 'lib/hostelify/hostelify.rb', line 3 def single @single end |
#unavailable ⇒ Object
Returns the value of attribute unavailable.
3 4 5 |
# File 'lib/hostelify/hostelify.rb', line 3 def unavailable @unavailable end |
#video ⇒ Object
Returns the value of attribute video.
2 3 4 |
# File 'lib/hostelify/hostelify.rb', line 2 def video @video end |