Class: Sequencescape::Batch

Inherits:
Api::Resource show all
Defined in:
lib/sequencescape/batch.rb

Class Method Summary collapse

Methods included from Api::Actions

#has_create_action, #has_update_action

Methods included from Api::Composition

#composed_of

Methods included from Api::Associations

extended

Methods included from Api::Resource::Attributes

extended

Methods included from Api::Resource::Json

#as_json, #changed?, included

Methods included from Api::Resource::ErrorHandling

included

Methods included from Api::Resource::Modifications

#initialize, #save!, #update_attributes!

Methods included from Api::Resource::InstanceMethods

#eql?, included, #initialize

Methods included from Api::Resource::ActiveModel

included, #persisted?

Class Method Details

.state_method(name) ⇒ Object



14
15
16
# File 'lib/sequencescape/batch.rb', line 14

def self.state_method(name)
  class_eval(%Q{def #{name}? ; state == #{name.to_s.inspect} ; end})
end