Class: SimpleRecord::Base::Attribute

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

Overview

Holds information about an attribute

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ Attribute

Returns a new instance of Attribute.



179
180
181
# File 'lib/simple_record.rb', line 179

def initialize(type)
    @type = type
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



177
178
179
# File 'lib/simple_record.rb', line 177

def options
  @options
end

#typeObject

Returns the value of attribute type.



177
178
179
# File 'lib/simple_record.rb', line 177

def type
  @type
end