Class: Megam::Mixins::Artifacts
- Inherits:
-
Object
- Object
- Megam::Mixins::Artifacts
- 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
- #attributes ⇒ Object
-
#initialize(params) ⇒ Artifacts
constructor
A new instance of Artifacts.
- #tohash ⇒ Object
Methods included from Nilavu::MegamAttributes
Constructor Details
#initialize(params) ⇒ Artifacts
Returns a new instance of Artifacts.
155 156 157 |
# File 'lib/megam/mixins/components.rb', line 155 def initialize(params) set_attributes(params) end |
Instance Method Details
#attributes ⇒ Object
151 152 153 |
# File 'lib/megam/mixins/components.rb', line 151 def attributes ATTRIBUTES end |
#tohash ⇒ Object
159 160 161 162 163 164 |
# File 'lib/megam/mixins/components.rb', line 159 def tohash { artifact_type: '', content: '', requirements: [] } end |