Class: DBD4::DatatypeDefinition
- Inherits:
-
Array
- Object
- Array
- DBD4::DatatypeDefinition
- Defined in:
- lib/dbd4/dbd4_model_file.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#param_keys ⇒ Object
readonly
Returns the value of attribute param_keys.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(datatype) ⇒ DatatypeDefinition
constructor
A new instance of DatatypeDefinition.
- #to_str ⇒ Object
Constructor Details
#initialize(datatype) ⇒ DatatypeDefinition
Returns a new instance of DatatypeDefinition.
451 452 453 454 455 456 457 |
# File 'lib/dbd4/dbd4_model_file.rb', line 451 def initialize(datatype) @id = datatype.attributes['ID'] @type = datatype.attributes['TypeName'] datatype.elements.each("PARAMS/PARAM") do |p| self << p.attributes['Name'] end end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
449 450 451 |
# File 'lib/dbd4/dbd4_model_file.rb', line 449 def id @id end |
#param_keys ⇒ Object (readonly)
Returns the value of attribute param_keys.
449 450 451 |
# File 'lib/dbd4/dbd4_model_file.rb', line 449 def param_keys @param_keys end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
449 450 451 |
# File 'lib/dbd4/dbd4_model_file.rb', line 449 def type @type end |
Instance Method Details
#to_str ⇒ Object
459 460 461 |
# File 'lib/dbd4/dbd4_model_file.rb', line 459 def to_str "GeneralDataType(id=#{id}, type=#{type}, #{params})" end |