Class: Formio::Record::Nil

Inherits:
Formio::Record show all
Defined in:
lib/formio/record.rb

Instance Attribute Summary

Attributes inherited from Formio::Record

#_id, #created_at, #form_id, #form_name, #formio_hash, #id, #updated_at

Instance Method Summary collapse

Methods inherited from Formio::Record

#[], #[]=, #to_h, #to_json

Constructor Details

#initializeNil

Returns a new instance of Nil.



50
51
52
53
54
55
56
57
# File 'lib/formio/record.rb', line 50

def initialize
  @_id = @id = nil
  @form_id = nil
  @formio_hash = {data: {}}.with_indifferent_access
  @form_name = nil
  @created_at = nil
  @updated_at = nil
end

Instance Method Details

#present?Boolean

Returns:

  • (Boolean)


59
60
61
# File 'lib/formio/record.rb', line 59

def present?
  false
end