lib/vra/client.rb in vmware-vra-1.3.0 vs lib/vra/client.rb in vmware-vra-1.4.0

- old
+ new

@@ -21,11 +21,11 @@ require 'passwordmasker' module Vra # rubocop:disable ClassLength class Client - attr_accessor :bearer_token, :page_size + attr_accessor :page_size def initialize(opts) @base_url = opts[:base_url] @username = opts[:username] @password = PasswordMasker.new(opts[:password]) @@ -56,9 +56,17 @@ ######################### # # client methods # + + def bearer_token + @bearer_token.value + end + + def bearer_token=(value) + @bearer_token.value = value + end def bearer_token_request_body { 'username' => @username, 'password' => @password.value,