Module: Sequencescape::Api::Composition::Target

Included in:
Tag, Tag::Group, User
Defined in:
lib/sequencescape-api/composition.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) included(base)



3
4
5
6
7
8
9
# File 'lib/sequencescape-api/composition.rb', line 3

def self.included(base)
  base.class_eval do
    include Sequencescape::Api::Resource::ActiveModel
    extend Sequencescape::Api::Resource::Attributes
    extend Sequencescape::Api::Composition
  end
end

Instance Method Details

- (Target) initialize(owner, attributes)



11
12
13
# File 'lib/sequencescape-api/composition.rb', line 11

def initialize(owner, attributes)
  @owner, @attributes = owner, attributes
end