Class: Reach::REST::Api

Inherits:
Domain
  • Object
show all
Defined in:
lib/reach-ruby/rest/api.rb,
lib/reach-ruby/rest/api/authentix.rb,
lib/reach-ruby/rest/api/messaging.rb,
lib/reach-ruby/rest/api/messaging/messaging_item.rb,
lib/reach-ruby/rest/api/authentix/configuration_item.rb,
lib/reach-ruby/rest/api/authentix/authentication_trial_item.rb,
lib/reach-ruby/rest/api/authentix/authentication_trial_stat_item.rb,
lib/reach-ruby/rest/api/authentix/configuration_item/authentication_item.rb,
lib/reach-ruby/rest/api/authentix/configuration_item/authentication_control_item.rb

Defined Under Namespace

Classes: Authentix, Messaging

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(reach) ⇒ Api

Initialize the Api Domain



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/reach-ruby/rest/api.rb', line 19

def initialize(reach)
  super

  @base_url = 'https://api.reach.talkylabs.com'
  @host = 'api.reach.talkylabs.com'
  @port = 443

  # Versions
  @messaging = nil
  @authentix = nil
end

Instance Method Details

#authentixObject

Version Authentix



39
40
41
# File 'lib/reach-ruby/rest/api.rb', line 39

def authentix
  @authentix ||= Authentix.new self
end

#messagingObject

Version Messaging



33
34
35
# File 'lib/reach-ruby/rest/api.rb', line 33

def messaging
  @messaging ||= Messaging.new self
end

#to_sObject

Provide a user friendly representation



45
46
47
# File 'lib/reach-ruby/rest/api.rb', line 45

def to_s
  '#<Reach::REST::Api>'
end