Class: Frame::Payout

Inherits:
APIResource show all
Defined in:
lib/frame/resources/payout.rb

Constant Summary collapse

OBJECT_NAME =
"payout"
DEPRECATED_METHODS =

retrieve is inherited from APIResource but the payout vocabulary is create only — the API exposes no GET /v1/payouts/{id} endpoint. Flag it deprecated so it stays out of the parity denominator; removed at v2.

%i[retrieve].freeze

Instance Attribute Summary

Attributes inherited from FrameObject

#id, #original_values

Class Method Summary collapse

Methods inherited from APIResource

class_name, #refresh, resource_url, #resource_url, retrieve

Methods included from APIOperations::Request

included

Methods inherited from FrameObject

#[], #[]=, construct_from, #each, #initialize, #initialize_from, #inspect, #keys, #serialize_params, #to_hash, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Frame::FrameObject

Class Method Details

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



16
17
18
# File 'lib/frame/resources/payout.rb', line 16

def self.create(params = {}, opts = {})
  request_object(:post, "/v1/payouts", params, opts)
end

.object_nameObject



7
8
9
# File 'lib/frame/resources/payout.rb', line 7

def self.object_name
  OBJECT_NAME
end