class NoSE::Fields::IDField
Field
holding a unique identifier
Public Class Methods
new(name, **options)
click to toggle source
Calls superclass method
NoSE::Fields::Field::new
# File lib/nose/model/fields.rb, line 266 def initialize(name, **options) super(name, 16, **options) @primary_key = true end
value_from_string(string)
click to toggle source
Return the String parameter as-is @return [String]
# File lib/nose/model/fields.rb, line 273 def self.value_from_string(string) string end
Public Instance Methods
random_value()
click to toggle source
nil value which is interpreted by the backend as requesting a new ID @return [nil]
# File lib/nose/model/fields.rb, line 279 def random_value nil end