Class: Sbuilder::Ial::Model::ParameterSetBuilder
- Inherits:
-
Object
- Object
- Sbuilder::Ial::Model::ParameterSetBuilder
- Defined in:
- lib/model/model_dsl.rb
Overview
Paramaeter sets: Definition, Request, Response
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#properties(v = []) ⇒ Object
782 783 784 785 786 787 788 789 790 791 792 793 794 |
# File 'lib/model/model_dsl.rb', line 782 def properties ( v=[] ) if @properties.nil? @properties = v.is_a?( Array ) ? v.map { |p| map2Property(p) } : [map2Property(v)] else # @properties = [] if v.is_a?( Array ) @properties = @properties + v.map { |p| map2Property(p) } else @properties << map2Property(v) end end self end |