Class: Joyent::Dataset

Inherits:
Object
  • Object
show all
Defined in:
lib/joyent/dataset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#defaultObject (readonly)

Returns the value of attribute default.



3
4
5
# File 'lib/joyent/dataset.rb', line 3

def default
  @default
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/joyent/dataset.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/joyent/dataset.rb', line 3

def name
  @name
end

#osObject (readonly)

Returns the value of attribute os.



3
4
5
# File 'lib/joyent/dataset.rb', line 3

def os
  @os
end

#requirementsObject (readonly)

Returns the value of attribute requirements.



3
4
5
# File 'lib/joyent/dataset.rb', line 3

def requirements
  @requirements
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/joyent/dataset.rb', line 3

def type
  @type
end

#urnObject (readonly)

Returns the value of attribute urn.



3
4
5
# File 'lib/joyent/dataset.rb', line 3

def urn
  @urn
end

#versionObject (readonly)

Returns the value of attribute version.



3
4
5
# File 'lib/joyent/dataset.rb', line 3

def version
  @version
end