Class: SeismicAPI::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/seismic_api.rb

Overview

Base level client for the Seismic API. You can access other sub clients through this class if desired.

Examples:

Accessing teamsites

SeismicAPI::Client.new(oauth_token: "token").teamsites

Instance Method Summary collapse

Constructor Details

#initialize(oauth_token: nil) ⇒ Client

Returns a new instance of Client.


53
54
55
# File 'lib/seismic_api.rb', line 53

def initialize(oauth_token:nil)
  @oauth_token = oauth_token
end

Instance Method Details

#teamsitesSeismicAPI::Client::Teamsites

Access the teamsites client

Returns:

  • (SeismicAPI::Client::Teamsites)

60
61
62
# File 'lib/seismic_api.rb', line 60

def teamsites
  Teamsites.new(oauth_token: @oauth_token)
end