Class: Rafflesia::ToolVersion

Inherits:
Rafflesia::Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/annotations/tool_version.rb

Constant Summary collapse

HASH_ATTRS =
{
  name: :name,
  path: :path,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ToolVersion

Returns a new instance of ToolVersion.



19
20
21
22
23
24
25
# File 'lib/rafflesia/annotations/tool_version.rb', line 19

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @name = hash[:name]
  @path = hash[:path]
  @version = hash[:version]
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/rafflesia/annotations/tool_version.rb', line 14

def name
  @name
end

#pathObject

Returns the value of attribute path.



14
15
16
# File 'lib/rafflesia/annotations/tool_version.rb', line 14

def path
  @path
end

#versionObject

Returns the value of attribute version.



14
15
16
# File 'lib/rafflesia/annotations/tool_version.rb', line 14

def version
  @version
end