Class: MetaData

Inherits:
Object
  • Object
show all
Defined in:
lib/meshx-plugin-sdk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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"]
  @tags = hash["tags"]
  @label = hash["label"]
end

Instance Attribute Details

#createdObject

Returns the value of attribute created.



221
222
223
# File 'lib/meshx-plugin-sdk.rb', line 221

def created
  @created
end

#idObject

Returns the value of attribute id.



221
222
223
# File 'lib/meshx-plugin-sdk.rb', line 221

def id
  @id
end

#labelObject

Returns the value of attribute label.



221
222
223
# File 'lib/meshx-plugin-sdk.rb', line 221

def label
  @label
end

#nameObject

Returns the value of attribute name.



221
222
223
# File 'lib/meshx-plugin-sdk.rb', line 221

def name
  @name
end

#runidObject

Returns the value of attribute runid.



221
222
223
# File 'lib/meshx-plugin-sdk.rb', line 221

def runid
  @runid
end

#tagsObject

Returns the value of attribute tags.



221
222
223
# File 'lib/meshx-plugin-sdk.rb', line 221

def tags
  @tags
end