Class: Cleon::Model
- Inherits:
-
Object
- Object
- Cleon::Model
- Defined in:
- lib/cleon/model.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(*args) ⇒ Model
Returns a new instance of Model.
23 24 25 26 |
# File 'lib/cleon/model.rb', line 23 def initialize(*args) @name, *params = GuardStringArray.(*args) @params = params.map{|pa| Param.new(pa)} end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
18 19 20 |
# File 'lib/cleon/model.rb', line 18 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
19 20 21 |
# File 'lib/cleon/model.rb', line 19 def params @params end |