Class: Frame::PhoneVerification

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

Constant Summary collapse

OBJECT_NAME =
"phone_verification"

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

.confirm(account_id, id, params = {}, opts = {}) ⇒ Object



15
16
17
# File 'lib/frame/resources/phone_verification.rb', line 15

def self.confirm(, id, params = {}, opts = {})
  request_object(:post, "/v1/accounts/#{CGI.escape()}/phone_verifications/#{CGI.escape(id)}/confirm", params, opts)
end

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



11
12
13
# File 'lib/frame/resources/phone_verification.rb', line 11

def self.create(, params = {}, opts = {})
  request_object(:post, "/v1/accounts/#{CGI.escape()}/phone_verifications", params, opts)
end

.object_nameObject



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

def self.object_name
  OBJECT_NAME
end