Class: VendorApi

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

Instance Method Summary collapse

Constructor Details

#initialize(api_token = nil) ⇒ VendorApi

Returns a new instance of VendorApi.



6
7
8
9
10
# File 'lib/replicatedvendor.rb', line 6

def initialize(api_token = nil)
	@api_token = api_token
	@client = ApiClient.new()
	@client.set_token(@api_token)
end

Instance Method Details

#appObject



12
13
14
# File 'lib/replicatedvendor.rb', line 12

def app
	return App.new(@client)
end

#appsObject



16
17
18
# File 'lib/replicatedvendor.rb', line 16

def apps
	return Apps.new(@client)
end

#auditlogObject



20
21
22
# File 'lib/replicatedvendor.rb', line 20

def auditlog
	return AuditLog.new(@client)
end

#authObject



24
25
26
# File 'lib/replicatedvendor.rb', line 24

def auth
	return Auth.new(@client)
end

#channelObject



28
29
30
# File 'lib/replicatedvendor.rb', line 28

def channel
	return Channel.new(@client)
end

#licenesObject



36
37
38
# File 'lib/replicatedvendor.rb', line 36

def licenes
	return Licenses.new(@client)
end

#licenseObject



32
33
34
# File 'lib/replicatedvendor.rb', line 32

def license
	return License.new(@client)
end

#releaseObject



40
41
42
# File 'lib/replicatedvendor.rb', line 40

def release
	return Release.new(@client)
end

#releasesObject



44
45
46
# File 'lib/replicatedvendor.rb', line 44

def releases
	return Releases.new(@client)
end

#teamObject



48
49
50
# File 'lib/replicatedvendor.rb', line 48

def team
	return Team.new(@client)
end