Class: DroidServices::Base
- Inherits:
-
Object
- Object
- DroidServices::Base
- Includes:
- Extensions::HasResponse, HasActiveLogger::Mixin
- Defined in:
- lib/droid_services/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#accessor ⇒ Object
Returns the value of attribute accessor.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Extensions::HasResponse
#add_error, #add_error_unless, #add_errors_from, #assign_resource, #respond_with, #set_message
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/droid_services/base.rb', line 8 def initialize( = {}) @accessor = [:as] @params = [:params] end |
Instance Attribute Details
#accessor ⇒ Object
Returns the value of attribute accessor.
6 7 8 |
# File 'lib/droid_services/base.rb', line 6 def accessor @accessor end |
#params ⇒ Object
Returns the value of attribute params.
6 7 8 |
# File 'lib/droid_services/base.rb', line 6 def params @params end |