Class: Pingpp::RedEnvelope

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

Class Method Summary collapse

Methods included from APIOperations::Create

create

Methods included from APIOperations::List

list

Methods inherited from APIResource

class_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

.object_nameObject



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

def self.object_name
  'red_envelope'
end

.resource_url(opts = {}) ⇒ Object



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

def self.resource_url(opts={})
  '/v1/red_envelopes'
end