Class: MetaData
- Inherits:
-
Object
- Object
- MetaData
- Defined in:
- lib/meshx-plugin-sdk.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
-
#name ⇒ Object
Returns the value of attribute name.
-
#runid ⇒ Object
Returns the value of attribute runid.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize(hash) ⇒ MetaData
constructor
A new instance of MetaData.
Constructor Details
#initialize(hash) ⇒ MetaData
Returns a new instance of MetaData.
223 224 225 226 227 228 229 230 |
# File 'lib/meshx-plugin-sdk.rb', line 223 def initialize(hash) @name = hash["name"] @created = hash["created"] @id = hash["id"] @runid = hash["runid"] = hash["tags"] @label = hash["label"] end |
Instance Attribute Details
#created ⇒ Object
Returns the value of attribute created.
221 222 223 |
# File 'lib/meshx-plugin-sdk.rb', line 221 def created @created end |
#id ⇒ Object
Returns the value of attribute id.
221 222 223 |
# File 'lib/meshx-plugin-sdk.rb', line 221 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
221 222 223 |
# File 'lib/meshx-plugin-sdk.rb', line 221 def label @label end |
#name ⇒ Object
Returns the value of attribute name.
221 222 223 |
# File 'lib/meshx-plugin-sdk.rb', line 221 def name @name end |
#runid ⇒ Object
Returns the value of attribute runid.
221 222 223 |
# File 'lib/meshx-plugin-sdk.rb', line 221 def runid @runid end |
#tags ⇒ Object
Returns the value of attribute tags.
221 222 223 |
# File 'lib/meshx-plugin-sdk.rb', line 221 def end |