Class: Nidyx::Model
- Inherits:
-
Object
- Object
- Nidyx::Model
- Defined in:
- lib/nidyx/model.rb
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
Returns the value of attribute dependencies.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#properties ⇒ Object
Returns the value of attribute properties.
Instance Method Summary collapse
-
#initialize(name) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(name) ⇒ Model
Returns a new instance of Model.
6 7 8 9 10 |
# File 'lib/nidyx/model.rb', line 6 def initialize(name) @name = name @properties = [] @dependencies = Set.new end |
Instance Attribute Details
#dependencies ⇒ Object
Returns the value of attribute dependencies.
3 4 5 |
# File 'lib/nidyx/model.rb', line 3 def dependencies @dependencies end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/nidyx/model.rb', line 4 def name @name end |
#properties ⇒ Object
Returns the value of attribute properties.
3 4 5 |
# File 'lib/nidyx/model.rb', line 3 def properties @properties end |