Class: Rafflesia::ObjectArtifactRequiredSet
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ObjectArtifactRequiredSet
- Defined in:
- lib/rafflesia/objects/object_artifact_required_set.rb
Constant Summary collapse
- HASH_ATTRS =
{ is_complete: :is_complete, missing_paths: :missing_paths, missing_suffixes: :missing_suffixes, name: :name, prefix: :prefix, present_suffixes: :present_suffixes, required_suffixes: :required_suffixes }.freeze
Instance Attribute Summary collapse
-
#is_complete ⇒ Object
Returns the value of attribute is_complete.
-
#missing_paths ⇒ Object
Returns the value of attribute missing_paths.
-
#missing_suffixes ⇒ Object
Returns the value of attribute missing_suffixes.
-
#name ⇒ Object
Returns the value of attribute name.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#present_suffixes ⇒ Object
Returns the value of attribute present_suffixes.
-
#required_suffixes ⇒ Object
Returns the value of attribute required_suffixes.
Instance Method Summary collapse
-
#initialize(json) ⇒ ObjectArtifactRequiredSet
constructor
A new instance of ObjectArtifactRequiredSet.
Constructor Details
#initialize(json) ⇒ ObjectArtifactRequiredSet
Returns a new instance of ObjectArtifactRequiredSet.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/objects/object_artifact_required_set.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @is_complete = hash[:is_complete] @missing_paths = (hash[:missing_paths] || []) @missing_suffixes = (hash[:missing_suffixes] || []) @name = hash[:name] @prefix = hash[:prefix] @present_suffixes = (hash[:present_suffixes] || []) @required_suffixes = (hash[:required_suffixes] || []) end |
Instance Attribute Details
#is_complete ⇒ Object
Returns the value of attribute is_complete.
18 19 20 |
# File 'lib/rafflesia/objects/object_artifact_required_set.rb', line 18 def is_complete @is_complete end |
#missing_paths ⇒ Object
Returns the value of attribute missing_paths.
18 19 20 |
# File 'lib/rafflesia/objects/object_artifact_required_set.rb', line 18 def missing_paths @missing_paths end |
#missing_suffixes ⇒ Object
Returns the value of attribute missing_suffixes.
18 19 20 |
# File 'lib/rafflesia/objects/object_artifact_required_set.rb', line 18 def missing_suffixes @missing_suffixes end |
#name ⇒ Object
Returns the value of attribute name.
18 19 20 |
# File 'lib/rafflesia/objects/object_artifact_required_set.rb', line 18 def name @name end |
#prefix ⇒ Object
Returns the value of attribute prefix.
18 19 20 |
# File 'lib/rafflesia/objects/object_artifact_required_set.rb', line 18 def prefix @prefix end |
#present_suffixes ⇒ Object
Returns the value of attribute present_suffixes.
18 19 20 |
# File 'lib/rafflesia/objects/object_artifact_required_set.rb', line 18 def present_suffixes @present_suffixes end |
#required_suffixes ⇒ Object
Returns the value of attribute required_suffixes.
18 19 20 |
# File 'lib/rafflesia/objects/object_artifact_required_set.rb', line 18 def required_suffixes @required_suffixes end |