Sha256: 8e0f948e870e8e50e3b787bec04b96c75acd887def76acf75ed506b0e8d577d4
Contents?: true
Size: 727 Bytes
Versions: 12
Compression:
Stored size: 727 Bytes
Contents
module BillForward class APIConfiguration < MutableEntity @resource_path = BillForward::ResourcePath.new('configurations', 'APIConfiguration') class << self def create(entity = nil) raise DenyMethod.new 'Create support is denied for this entity; '+ 'at the time of writing, no API endpoint exists to support it. '+ 'The entity can be created through cascade only (i.e. instantiated within another entity).' end def get_by_type(type, query_params = {}, custom_client = nil) raise ArgumentError.new("type cannot be nil") if type.nil? endpoint = sprintf('type/%s', ERB::Util.url_encode(type) ) self.request_first('get', endpoint, query_params, custom_client) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems