Class: Sequencescape::Api::Resource

Inherits:
Object
  • Object
show all
Extended by:
Actions, Associations, Composition, Attributes, Groups
Includes:
ErrorHandling, ActiveModel, Groups::Json, InstanceMethods, Json, Modifications
Defined in:
lib/sequencescape-api/resource.rb

Defined Under Namespace

Modules: ActiveModel, Attributes, Groups, InstanceMethods, Json, Modifications

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Attributes

extended

Methods included from Groups

attribute_group, extended

Methods included from Associations

extended

Methods included from Composition

composed_of

Methods included from Actions

extended

Methods included from Json

#as_json, #changed?, #coerce_to, included

Methods included from ErrorHandling

included

Methods included from Modifications

#save!, #update_attributes!

Methods included from InstanceMethods

#eql?, included

Methods included from ActiveModel

included, #persisted?

Constructor Details

#initialize(*args, &block) ⇒ Resource

Returns a new instance of Resource.



30
31
32
33
# File 'lib/sequencescape-api/resource.rb', line 30

def initialize(*args, &block)
  super
  after_load
end

Class Method Details

.is_a_proxied_model?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/sequencescape-api/resource.rb', line 44

def self.is_a_proxied_model?
  false
end