class IAuditor::Base
Public Class Methods
token(username, password, grant_type)
click to toggle source
# File lib/iAuditor/base.rb, line 23 def self.token(username, password, grant_type) token = HTTParty.post('https://api.safetyculture.io/auth', :body => { "username": username, "password": password, "grant_type":"password" } ).parsed_response["access_token"] token end
Public Instance Methods
actions()
click to toggle source
# File lib/iAuditor/base.rb, line 15 def actions IAuditor::Actions.new(@options) end
audits()
click to toggle source
# File lib/iAuditor/base.rb, line 7 def audits IAuditor::Audit.new(@options) end
export()
click to toggle source
# File lib/iAuditor/base.rb, line 19 def export IAuditor::Export.new(@options) end
templates()
click to toggle source
# File lib/iAuditor/base.rb, line 11 def templates IAuditor::Template.new(@options) end