Class: Barbeque::Api::ApplicationResource

Inherits:
Object
  • Object
show all
Includes:
Garage::Authorizable, Garage::Representer
Defined in:
app/models/barbeque/api/application_resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#modelObject (readonly)

Returns the value of attribute model.



7
8
9
# File 'app/models/barbeque/api/application_resource.rb', line 7

def model
  @model
end