Class: Kuroko2::Api::ApplicationResource
- Inherits:
-
Object
- Object
- Kuroko2::Api::ApplicationResource
- Includes:
- Garage::Authorizable, Garage::Representer
- Defined in:
- app/models/kuroko2/api/application_resource.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model = nil) ⇒ ApplicationResource
constructor
A new instance of ApplicationResource.
Constructor Details
#initialize(model = nil) ⇒ ApplicationResource
Returns a new instance of ApplicationResource.
7 8 9 |
# File 'app/models/kuroko2/api/application_resource.rb', line 7 def initialize(model = nil) @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
5 6 7 |
# File 'app/models/kuroko2/api/application_resource.rb', line 5 def model @model end |