Class: Joyent::Dataset
- Inherits:
-
Object
- Object
- Joyent::Dataset
- Defined in:
- lib/joyent/dataset.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#os ⇒ Object
readonly
Returns the value of attribute os.
-
#requirements ⇒ Object
readonly
Returns the value of attribute requirements.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#urn ⇒ Object
readonly
Returns the value of attribute urn.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Dataset
constructor
A new instance of Dataset.
Constructor Details
#initialize(attributes) ⇒ Dataset
Returns a new instance of Dataset.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/joyent/dataset.rb', line 5 def initialize(attributes) @io = attributes["io"] @name = attributes["name"] @os = attributes["os"] @version = attributes["version"] @urn = attributes["urn"] @type = attributes["type"] @default = attributes["default"] @requirements = attributes["requirements"] end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
3 4 5 |
# File 'lib/joyent/dataset.rb', line 3 def default @default end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/joyent/dataset.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/joyent/dataset.rb', line 3 def name @name end |
#os ⇒ Object (readonly)
Returns the value of attribute os.
3 4 5 |
# File 'lib/joyent/dataset.rb', line 3 def os @os end |
#requirements ⇒ Object (readonly)
Returns the value of attribute requirements.
3 4 5 |
# File 'lib/joyent/dataset.rb', line 3 def requirements @requirements end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/joyent/dataset.rb', line 3 def type @type end |
#urn ⇒ Object (readonly)
Returns the value of attribute urn.
3 4 5 |
# File 'lib/joyent/dataset.rb', line 3 def urn @urn end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
3 4 5 |
# File 'lib/joyent/dataset.rb', line 3 def version @version end |