Class: Pingpp::Agreement

Inherits:
APIResource show all
Extended by:
Pingpp::APIOperations::Create, Pingpp::APIOperations::List
Includes:
Pingpp::APIOperations::Update
Defined in:
lib/pingpp/agreement.rb

Class Method Summary collapse

Methods included from Pingpp::APIOperations::Create

create

Methods included from Pingpp::APIOperations::List

list

Methods included from Pingpp::APIOperations::Update

included, #save

Methods inherited from APIResource

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

Methods included from Pingpp::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

.cancel(id, opts = {}) ⇒ Object



7
8
9
# File 'lib/pingpp/agreement.rb', line 7

def self.cancel(id, opts={})
  update(id, {:status => 'canceled'}, opts)
end