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
#context ⇒ Object
53 54 55 |
# File 'app/models/supplejack_api/support/concept/storable.rb', line 53 def context [ENV['HTTP_HOST'], 'schema'].join('/') end |
#edm_type ⇒ Object
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_id ⇒ Object
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 |