Class: Nemo::Examples::PersonEditor::PhoneNumber

Inherits:
Object
  • Object
show all
Defined in:
lib/nemo/examples/person_editor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#numberObject

Returns the value of attribute number.



207
208
209
# File 'lib/nemo/examples/person_editor.rb', line 207

def number
  @number
end

#typeObject

Returns the value of attribute type.



207
208
209
# File 'lib/nemo/examples/person_editor.rb', line 207

def type
  @type
end

Instance Method Details

#metaobjectObject



209
210
211
212
213
214
215
216
217
218
219
220
221
# File 'lib/nemo/examples/person_editor.rb', line 209

def metaobject
  Nemo.metaobject_for(self) {
    text :type
      label 'Type'
      maxlength 10
      required

    text :number
      label 'Number'
      maxlength 20
      required
  }
end