Class: JSONAPI::Serialization::PathContext

Inherits:
Struct
  • Object
show all
Defined in:
lib/json_api/serialization/concerns/includes_serialization.rb

Instance Attribute Summary collapse

Instance Attribute Details

#association_nameObject

Returns the value of attribute association_name

Returns:

  • (Object)

    the current value of association_name



8
9
10
# File 'lib/json_api/serialization/concerns/includes_serialization.rb', line 8

def association_name
  @association_name
end

#current_recordObject

Returns the value of attribute current_record

Returns:

  • (Object)

    the current value of current_record



8
9
10
# File 'lib/json_api/serialization/concerns/includes_serialization.rb', line 8

def current_record
  @current_record
end

#path_partsObject

Returns the value of attribute path_parts

Returns:

  • (Object)

    the current value of path_parts



8
9
10
# File 'lib/json_api/serialization/concerns/includes_serialization.rb', line 8

def path_parts
  @path_parts
end

Returns the value of attribute path_to_related

Returns:

  • (Object)

    the current value of path_to_related



8
9
10
# File 'lib/json_api/serialization/concerns/includes_serialization.rb', line 8

def path_to_related
  @path_to_related
end