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.



154
155
156
# File 'lib/megam/mixins/components.rb', line 154

def initialize(params)
  set_attributes(params)
end

Instance Method Details

#attributesObject



150
151
152
# File 'lib/megam/mixins/components.rb', line 150

def attributes
  ATTRIBUTES
end

#tohashObject



158
159
160
161
162
163
# File 'lib/megam/mixins/components.rb', line 158

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