Class: LiveFixtures::Export::Reference

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

Overview

References represent associations between fixtures, in the same way that foreign_keys do for records. These will be initialized for you based on the contents of ‘with_references` passed to `export_fixtures`. They will be initialized with the name of the association (a Symbol) and the particular associated model.

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



21
22
23
# File 'lib/live_fixtures/export.rb', line 21

def name
  @name
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



21
22
23
# File 'lib/live_fixtures/export.rb', line 21

def value
  @value
end