Class: Megam::Mixins::Assemblies

Inherits:
Object
  • Object
show all
Defined in:
lib/megam/mixins/assemblies.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Assemblies



22
23
24
# File 'lib/megam/mixins/assemblies.rb', line 22

def initialize(params)
  @assembly = Assembly.new(params)
end

Instance Attribute Details

#assemblyObject (readonly)

Returns the value of attribute assembly.



21
22
23
# File 'lib/megam/mixins/assemblies.rb', line 21

def assembly
  @assembly
end

Instance Method Details

#to_hashObject



26
27
28
# File 'lib/megam/mixins/assemblies.rb', line 26

def to_hash
  assembly.to_hash
end