Class: Pingpp::Royalty

Inherits:
APIResource show all
Extended by:
APIOperations::List
Defined in:
lib/pingpp/royalty.rb

Class Method Summary collapse

Methods included from APIOperations::List

list

Methods inherited from APIResource

class_name, object_name, #refresh, #resource_url, retrieve, uri_object_name

Methods included from APIOperations::Request

included

Methods inherited from PingppObject

#==, #[], #[]=, #_dump, _load, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #respond_to?, #serialize_params, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from Pingpp::PingppObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Pingpp::PingppObject

Class Method Details

.batch_update(params, opts = {}) ⇒ Object



5
6
7
8
# File 'lib/pingpp/royalty.rb', line 5

def self.batch_update(params, opts={})
  response, opts = request(:put, resource_url(opts), params, opts)
  Util.convert_to_pingpp_object(response, opts)
end

.resource_url(opt = {}) ⇒ Object



10
11
12
# File 'lib/pingpp/royalty.rb', line 10

def self.resource_url(opt={})
  '/v1/royalties'
end