Module: Insuggest::Travel
- Defined in:
- lib/insuggest/travel.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/insuggest/travel.rb', line 3 def attributes @attributes end |
Class Method Details
.included(base) ⇒ Object
44 45 46 |
# File 'lib/insuggest/travel.rb', line 44 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(attributes = {}) ⇒ Object
5 6 7 |
# File 'lib/insuggest/travel.rb', line 5 def initialize(attributes={}) @attributes = attributes end |
#to_hash ⇒ Object
9 10 11 |
# File 'lib/insuggest/travel.rb', line 9 def to_hash @attributes end |