Sha256: 5d82835f3d9317abf6b85179aad64e9ac5dfe9cbfb180a210e2a3515c58bf5c4
Contents?: true
Size: 726 Bytes
Versions: 2
Compression:
Stored size: 726 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_many('get', endpoint, query_params, custom_client) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bill_forward-1.2015.186 | lib/bill_forward/entities/api_configuration.rb |
bill_forward-1.2015.183 | lib/bill_forward/entities/api_configuration.rb |