Class: AmsLayout::Parser::NullControl

Inherits:
Object
  • Object
show all
Defined in:
lib/ams_layout/parser.rb

Overview

Control

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNullControl

Returns a new instance of NullControl.



125
126
127
128
129
# File 'lib/ams_layout/parser.rb', line 125

def initialize
  @label = ''
  @id = ''
  @type = ''
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



123
124
125
# File 'lib/ams_layout/parser.rb', line 123

def id
  @id
end

#labelObject (readonly)

Returns the value of attribute label.



123
124
125
# File 'lib/ams_layout/parser.rb', line 123

def label
  @label
end

#typeObject (readonly)

Returns the value of attribute type.



123
124
125
# File 'lib/ams_layout/parser.rb', line 123

def type
  @type
end

Instance Method Details

#to_hashObject



131
132
133
# File 'lib/ams_layout/parser.rb', line 131

def to_hash
  {label: @label, id: @id, type: @type}
end