Class: YesRecord::Column

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

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



8
9
10
# File 'lib/yes_record.rb', line 8

def name
  @name
end

#primary_keyObject

Returns the value of attribute primary_key

Returns:

  • (Object)

    the current value of primary_key



8
9
10
# File 'lib/yes_record.rb', line 8

def primary_key
  @primary_key
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



8
9
10
# File 'lib/yes_record.rb', line 8

def type
  @type
end