Class: Api::V2::WellResource

Inherits:
BaseResource
  • Object
show all
Defined in:
app/resources/api/v2/well_resource.rb

Overview

Provides a JSON API representation of receptacle See: jsonapi-resources.com/ for JSONAPI::Resource documentation

Instance Method Summary collapse

Methods inherited from BaseResource

apply_includes, default_includes, inclusions, resolve_relationship_names_to_relations, updatable_fields

Instance Method Details

#positionObject

Custom methods


46
47
48
49
50
# File 'app/resources/api/v2/well_resource.rb', line 46

def position
  {
    'name' => _model.map_description
  }
end