Class: Avmtrf1::Tools::Runner::Msgraph

Inherits:
Object
  • Object
show all
Defined in:
lib/avmtrf1/tools/runner/msgraph.rb,
lib/avmtrf1/tools/runner/msgraph/token.rb

Defined Under Namespace

Classes: Token

Instance Method Summary collapse

Instance Method Details

#client_idObject



15
16
17
# File 'lib/avmtrf1/tools/runner/msgraph.rb', line 15

def client_id
  client_id_by_argument || client_id_by_config
end

#client_id_by_argumentObject



19
20
21
# File 'lib/avmtrf1/tools/runner/msgraph.rb', line 19

def client_id_by_argument
  parsed.client_id.presence
end

#client_id_by_configObject



23
24
25
# File 'lib/avmtrf1/tools/runner/msgraph.rb', line 23

def client_id_by_config
  ::EacConfig::Node.context.current.entry('msgraph.client_id').value
end