Class: Fog::Compute::Brightbox::Account

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/brightbox/models/compute/account.rb

Instance Attribute Summary

Attributes inherited from Model

#collection, #connection

Instance Method Summary collapse

Methods inherited from Model

#initialize, #inspect, #reload, #symbolize_keys, #to_json, #wait_for

Methods included from Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one

Constructor Details

This class inherits a constructor from Fog::Model

Instance Method Details

#reset_ftp_passwordString

Resets the account’s image library FTP password returning the new value

Returns:

  • (String)

    Newly issue FTP password



58
59
60
61
62
63
# File 'lib/fog/brightbox/models/compute/account.rb', line 58

def reset_ftp_password
  requires :identity
  data = connection.(identity)
  merge_attributes(data)
  library_ftp_password
end