class Conoha::Config::Account

Attributes

password[R]
public_key[R]
tenant_id[R]
username[R]

Public Class Methods

new(h) click to toggle source
# File lib/conoha/config.rb, line 12
def initialize(h)
  @username   = h['username']
  @password   = h['password']
  @tenant_id  = h['tenant_id']
  @public_key = h['public_key']
end

Public Instance Methods

to_hash() click to toggle source
# File lib/conoha/config.rb, line 19
def to_hash
  {
    'username'   => @username,
    'password'   => @password,
    'tenant_id'  => @tenant_id,
    'public_key' => @public_key,
  }
end