Class: MagicaVoxel::Shape::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/magica_voxel/shape.rb

Overview

:nodoc:

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, attributes) ⇒ Model

Returns a new instance of Model.

Parameters:

  • id (Number)

    the mode id

  • attributes (Hash)

    the model attributes

Since:

  • 0.1.0



17
18
19
20
# File 'lib/magica_voxel/shape.rb', line 17

def initialize(id, attributes)
  @id = id
  @attributes = attributes
end

Instance Attribute Details

#attributesObject (readonly)

Since:

  • 0.1.0



11
12
13
# File 'lib/magica_voxel/shape.rb', line 11

def attributes
  @attributes
end

#idObject (readonly)

Since:

  • 0.1.0



11
12
13
# File 'lib/magica_voxel/shape.rb', line 11

def id
  @id
end