Class: Expressir::Model::DataTypes::String

Inherits:
Expressir::Model::DataType show all
Defined in:
lib/expressir/model/data_types/string.rb

Overview

Specified in ISO 10303-11:2004

  • section 8.1.6 String data type

Instance Attribute Summary collapse

Attributes inherited from ModelElement

#parent

Instance Method Summary collapse

Methods inherited from ModelElement

#children, #children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s

Constructor Details

#initialize(options = {}) ⇒ String

Returns a new instance of String.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):



13
14
15
16
17
18
# File 'lib/expressir/model/data_types/string.rb', line 13

def initialize(options = {})
  @width = options[:width]
  @fixed = options[:fixed]

  super
end

Instance Attribute Details

#fixed::Boolean

Returns:

  • (::Boolean)


8
# File 'lib/expressir/model/data_types/string.rb', line 8

model_attr_accessor :fixed, "::Boolean"

#widthExpression

Returns:



7
# File 'lib/expressir/model/data_types/string.rb', line 7

model_attr_accessor :width, "Expression"