Class: Rafflesia::FoldIndexArtifactState

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_index_artifact_state.rb

Constant Summary collapse

HASH_ATTRS =
{
  artifact: :artifact,
  error: :error,
  exists: :exists,
  is_local: :is_local,
  local_path: :local_path,
  verified: :verified
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldIndexArtifactState

Returns a new instance of FoldIndexArtifactState.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/proteins/fold_index_artifact_state.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @artifact = hash[:artifact] ? Rafflesia::FoldIndexArtifact.new(hash[:artifact]) : nil
  @error = hash[:error]
  @exists = hash[:exists]
  @is_local = hash[:is_local]
  @local_path = hash[:local_path]
  @verified = hash[:verified]
end

Instance Attribute Details

#artifactObject

Returns the value of attribute artifact.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_artifact_state.rb', line 17

def artifact
  @artifact
end

#errorObject

Returns the value of attribute error.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_artifact_state.rb', line 17

def error
  @error
end

#existsObject

Returns the value of attribute exists.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_artifact_state.rb', line 17

def exists
  @exists
end

#is_localObject

Returns the value of attribute is_local.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_artifact_state.rb', line 17

def is_local
  @is_local
end

#local_pathObject

Returns the value of attribute local_path.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_artifact_state.rb', line 17

def local_path
  @local_path
end

#verifiedObject

Returns the value of attribute verified.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_artifact_state.rb', line 17

def verified
  @verified
end