Class: Megam::Mixins::Artifacts

Inherits:
Object
  • Object
show all
Includes:
Nilavu::MegamAttributes
Defined in:
lib/megam/mixins/components.rb

Constant Summary collapse

ATTRIBUTES =
[
:type,
:content,
:requirements]

Constants included from Nilavu::MegamAttributes

Nilavu::MegamAttributes::KEY, Nilavu::MegamAttributes::VALUE

Instance Method Summary collapse

Methods included from Nilavu::MegamAttributes

#set_attributes, #to_hash

Constructor Details

#initialize(params) ⇒ Artifacts

Returns a new instance of Artifacts.



169
170
171
# File 'lib/megam/mixins/components.rb', line 169

def initialize(params)
  set_attributes(params)
end

Instance Method Details

#attributesObject



165
166
167
# File 'lib/megam/mixins/components.rb', line 165

def attributes
  ATTRIBUTES
end

#tohashObject



173
174
175
176
177
178
# File 'lib/megam/mixins/components.rb', line 173

def tohash
  {   artifact_type: '',
      content: '',
      requirements: []
  }
end