Sha256: 0f8cb05777fc5a60e503571523051f1529e7872ca4606573cdf8e0fe86ffc3e8
Contents?: true
Size: 998 Bytes
Versions: 1
Compression:
Stored size: 998 Bytes
Contents
require 'forwardable' require 'active_support/concern' require 'active_support/inflector' require 'active_support/core_ext/hash' require 'active_support/core_ext/module' require 'active_support/core_ext/class/attribute' require 'active_support/core_ext/enumerable' module JsonApiClient class Resource class_attribute :site, :primary_key self.primary_key = :id class << self # base URL for this resource def resource File.join(site, path) end def table_name resource_name.pluralize end def resource_name name.demodulize.underscore end end include Helpers::Initializable include Helpers::Attributable include Helpers::Associable include Helpers::Parsable include Helpers::Queryable include Helpers::Serializable include Helpers::Linkable include Helpers::CustomEndpoints include Helpers::Schemable include Helpers::Paginatable include Helpers::Requestable end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json_api_client-1.0.0.beta | lib/json_api_client/resource.rb |