class Yade::Common::Model::Authentication

authentication

Attributes

access_token[RW]
auth_password[RW]
auth_url[RW]
auth_username[RW]
expiration_time[RW]
refresh_token[RW]

Public Instance Methods

attributes() click to toggle source
# File lib/yade/common/model/authentication.rb, line 21
def attributes
  instance_values
end
read() click to toggle source

read

# File lib/yade/common/model/authentication.rb, line 35
def read
  from_json(File.read("#{ENV['HOME']}/.yade/authentication.json"))
end
write() click to toggle source

write

# File lib/yade/common/model/authentication.rb, line 26
def write
  json = as_json.to_json

  File.open("#{ENV['HOME']}/.yade/authentication.json", 'w') do |f|
    f.write(json)
  end
end