Class: Twilio::REST::Authy

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/authy.rb,
lib/twilio-ruby/rest/authy/v1.rb,
lib/twilio-ruby/rest/authy/v1/form.rb,
lib/twilio-ruby/rest/authy/v1/service.rb,
lib/twilio-ruby/rest/authy/v1/service/entity.rb,
lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb,
lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Authy

Initialize the Authy Domain



14
15
16
17
18
19
20
21
22
23
# File 'lib/twilio-ruby/rest/authy.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://authy.twilio.com'
  @host = 'authy.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
end

Instance Method Details

#forms(form_type = :unset) ⇒ Twilio::REST::Authy::V1::FormInstance, Twilio::REST::Authy::V1::FormList

Parameters:

  • form_type (form.FormTypes) (defaults to: :unset)

    The Type of this Form. One of ‘form-app-push`, `form-sms` or `form-totp`.

Returns:



44
45
46
# File 'lib/twilio-ruby/rest/authy.rb', line 44

def forms(form_type=:unset)
  self.v1.forms(form_type)
end

#services(sid = :unset) ⇒ Twilio::REST::Authy::V1::ServiceInstance, Twilio::REST::Authy::V1::ServiceList

Parameters:

  • sid (String) (defaults to: :unset)

    A 34 character string that uniquely identifies this Service.

Returns:



35
36
37
# File 'lib/twilio-ruby/rest/authy.rb', line 35

def services(sid=:unset)
  self.v1.services(sid)
end

#to_sObject

Provide a user friendly representation



50
51
52
# File 'lib/twilio-ruby/rest/authy.rb', line 50

def to_s
  '#<Twilio::REST::Authy>'
end

#v1Object

Version v1 of authy



27
28
29
# File 'lib/twilio-ruby/rest/authy.rb', line 27

def v1
  @v1 ||= V1.new self
end