Class: Barbeque::Api::ApplicationResource
- Inherits:
-
Object
- Object
- Barbeque::Api::ApplicationResource
- Includes:
- Garage::Authorizable, Garage::Representer
- Defined in:
- app/models/barbeque/api/application_resource.rb
Direct Known Subclasses
JobExecutionResource, JobRetryResource, RevisionLockResource
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.
9 10 11 |
# File 'app/models/barbeque/api/application_resource.rb', line 9 def initialize(model = nil) @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
7 8 9 |
# File 'app/models/barbeque/api/application_resource.rb', line 7 def model @model end |