Module: SupplejackApi::Support::Concept::Storable

Extended by:
ActiveSupport::Concern
Included in:
Concept
Defined in:
app/models/supplejack_api/support/concept/storable.rb

Instance Method Summary collapse

Instance Method Details

#contextObject


53
54
55
# File 'app/models/supplejack_api/support/concept/storable.rb', line 53

def context
  [ENV['HTTP_HOST'], 'schema'].join('/')
end

#edm_typeObject

included


45
46
47
# File 'app/models/supplejack_api/support/concept/storable.rb', line 45

def edm_type
  concept_type.gsub(/edm:/, '').downcase.pluralize
end

#site_idObject


49
50
51
# File 'app/models/supplejack_api/support/concept/storable.rb', line 49

def site_id
  [ENV['CONCEPT_HTTP_HOST'], 'concepts', concept_id].join('/')
end