Class: Frame::PhoneVerification
- Inherits:
-
APIResource
- Object
- FrameObject
- APIResource
- Frame::PhoneVerification
- Defined in:
- lib/frame/resources/phone_verification.rb
Constant Summary collapse
- OBJECT_NAME =
"phone_verification"
Instance Attribute Summary
Attributes inherited from FrameObject
Class Method Summary collapse
- .confirm(account_id, id, params = {}, opts = {}) ⇒ Object
- .create(account_id, params = {}, opts = {}) ⇒ Object
- .object_name ⇒ Object
Methods inherited from APIResource
class_name, #refresh, resource_url, #resource_url, retrieve
Methods included from APIOperations::Request
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(account_id, id, params = {}, opts = {}) request_object(:post, "/v1/accounts/#{CGI.escape(account_id)}/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(account_id, params = {}, opts = {}) request_object(:post, "/v1/accounts/#{CGI.escape(account_id)}/phone_verifications", params, opts) end |
.object_name ⇒ Object
7 8 9 |
# File 'lib/frame/resources/phone_verification.rb', line 7 def self.object_name OBJECT_NAME end |