Class: CoolId::Id

Inherits:
Struct
  • Object
show all
Defined in:
lib/cool_id.rb

Instance Attribute Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



18
19
20
# File 'lib/cool_id.rb', line 18

def id
  @id
end

#id_fieldObject

Returns the value of attribute id_field

Returns:

  • (Object)

    the current value of id_field



18
19
20
# File 'lib/cool_id.rb', line 18

def id_field
  @id_field
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



18
19
20
# File 'lib/cool_id.rb', line 18

def key
  @key
end

#model_classObject

Returns the value of attribute model_class

Returns:

  • (Object)

    the current value of model_class



18
19
20
# File 'lib/cool_id.rb', line 18

def model_class
  @model_class
end

#prefixObject

Returns the value of attribute prefix

Returns:

  • (Object)

    the current value of prefix



18
19
20
# File 'lib/cool_id.rb', line 18

def prefix
  @prefix
end