Class: Vpsa::Client
- Inherits:
-
Object
show all
- Extended by:
- ClassMethods
- Includes:
- HTTParty
- Defined in:
- lib/vpsa/client.rb
Defined Under Namespace
Classes: NoAccessTokenError, Response
Instance Attribute Summary collapse
Instance Method Summary
collapse
require_all
Constructor Details
#initialize(access_token) ⇒ Client
Returns a new instance of Client.
15
16
17
18
|
# File 'lib/vpsa/client.rb', line 15
def initialize(access_token)
raise NoAccessTokenError if access_token.nil? || access_token.strip == ""
@access_token = access_token
end
|
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
13
14
15
|
# File 'lib/vpsa/client.rb', line 13
def access_token
@access_token
end
|
Instance Method Details
#default_entries ⇒ Object
#entities ⇒ Object
24
25
26
|
# File 'lib/vpsa/client.rb', line 24
def entities
Vpsa::Api::Entities.new(@access_token)
end
|
#provisions ⇒ Object
32
33
34
|
# File 'lib/vpsa/client.rb', line 32
def provisions
Vpsa::Api::Provisions.new(@access_token)
end
|
#third_parties ⇒ Object
20
21
22
|
# File 'lib/vpsa/client.rb', line 20
def third_parties
Vpsa::Api::ThirdParties.new(@access_token)
end
|
#user_data ⇒ Object
36
37
38
|
# File 'lib/vpsa/client.rb', line 36
def user_data
Vpsa::Api::UserData.new(@access_token)
end
|