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.



204
205
206
207
208
# File 'lib/ardb/record_spy.rb', line 204

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.



202
203
204
# File 'lib/ardb/record_spy.rb', line 202

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



202
203
204
# File 'lib/ardb/record_spy.rb', line 202

def options
  @options
end

#typeObject (readonly)

Returns the value of attribute type.



202
203
204
# File 'lib/ardb/record_spy.rb', line 202

def type
  @type
end