Class: Rafflesia::ToolVersion
- Inherits:
-
Rafflesia::Types::BaseModel
- Object
- Rafflesia::Types::BaseModel
- Rafflesia::ToolVersion
- Defined in:
- lib/rafflesia/annotations/tool_version.rb
Constant Summary collapse
- HASH_ATTRS =
{ name: :name, path: :path, version: :version }.freeze
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ ToolVersion
constructor
A new instance of ToolVersion.
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
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/rafflesia/annotations/tool_version.rb', line 14 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
14 15 16 |
# File 'lib/rafflesia/annotations/tool_version.rb', line 14 def path @path end |
#version ⇒ Object
Returns the value of attribute version.
14 15 16 |
# File 'lib/rafflesia/annotations/tool_version.rb', line 14 def version @version end |