Module: OnSIP::Model
- Extended by:
- ClassMethods
- Included in:
- Account, CDR, ExternalAddress, Organization, User, UserAddress
- Defined in:
- lib/onsip/model.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary
Constants included from ClassMethods
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#session ⇒ Object
Returns the value of attribute session.
Instance Method Summary collapse
Methods included from ClassMethods
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/onsip/model.rb', line 4 def attributes @attributes end |
#session ⇒ Object
Returns the value of attribute session.
4 5 6 |
# File 'lib/onsip/model.rb', line 4 def session @session end |
Instance Method Details
#initialize(attributes = {}) ⇒ Object
6 7 8 |
# File 'lib/onsip/model.rb', line 6 def initialize(attributes = {}) @attributes = Hashie::Mash.new attributes end |