Sha256: 4c9d1bdae5d80273fc88332d2c5a6c8e1ba69633a8ef7ad3c3f5a2bdda05abef
Contents?: true
Size: 504 Bytes
Versions: 32
Compression:
Stored size: 504 Bytes
Contents
require 'intercom/client_collection_proxy' module Intercom module Service class BaseService attr_reader :client def initialize(client) @client = client end def collection_class raise NotImplementedError end def collection_proxy_class Intercom::ClientCollectionProxy end def from_api(api_response) object = collection_class.new object.from_response(api_response) object end end end end
Version data entries
32 entries across 32 versions & 1 rubygems