Class: Ardb::RecordSpy::Association

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, name, options = nil) ⇒ Association

Returns a new instance of Association.



106
107
108
109
110
# File 'lib/ardb/record_spy.rb', line 106

def initialize(type, name, options = nil)
  @type = type.to_sym
  @name = name
  @options = options || {}
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



104
105
106
# File 'lib/ardb/record_spy.rb', line 104

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



104
105
106
# File 'lib/ardb/record_spy.rb', line 104

def options
  @options
end

#typeObject (readonly)

Returns the value of attribute type.



104
105
106
# File 'lib/ardb/record_spy.rb', line 104

def type
  @type
end