Sha256: f1554f53c9dfe6fecc37e096dcbef2f5320cc4f0cc3ff51cf390c065f4259035
Contents?: true
Size: 899 Bytes
Versions: 22
Compression:
Stored size: 899 Bytes
Contents
module NetSuite module Support module Requests def self.included(base) base.send(:extend, ClassMethods) end module ClassMethods def call(*args) new(*args).call end end def call @response = request build_response end private def request raise NotImplementedError, 'Please implement a #request method' end def connection Configuration.connection end def auth_header Configuration.auth_header end def build_response Response.new(:success => success?, :body => response_body) end def success? raise NotImplementedError, 'Please implement a #success? method' end def response_body raise NotImplementedError, 'Please implement a #response_body method' end end end end
Version data entries
22 entries across 22 versions & 1 rubygems