Class: Ardb::RecordSpy::Association
- Inherits:
-
Object
- Object
- Ardb::RecordSpy::Association
- Defined in:
- lib/ardb/record_spy.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, name, options = nil) ⇒ Association
constructor
A new instance of Association.
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, = nil) @type = type.to_sym @name = name @options = || {} end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
202 203 204 |
# File 'lib/ardb/record_spy.rb', line 202 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
202 203 204 |
# File 'lib/ardb/record_spy.rb', line 202 def @options end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
202 203 204 |
# File 'lib/ardb/record_spy.rb', line 202 def type @type end |