Class: Sequencescape::Api::Associations::Base

Inherits:
Object
  • Object
show all
Includes:
InstanceMethods
Defined in:
lib/sequencescape-api/associations/base.rb

Defined Under Namespace

Modules: InstanceMethods

Instance Method Summary collapse

Methods included from InstanceMethods

included, #proxy_present?

Constructor Details

#initialize(owner, json = nil) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/sequencescape-api/associations/base.rb', line 8

def initialize(owner, json = nil)
  super
  @actions = OpenStruct.new(@_attributes_.delete('actions'))
end