Sha256: acb6a4c7605892120b4f7dd51b86fe5a33a6ea749cd4b55e8912ca7146b10cfc

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

module Fog
  module Compute
    class Brightbox
      class Real

        # Requests an update to the currently scoped account
        #
        # === Parameters:
        #
        # <tt>options</tt>:: Hash of options for update
        #
        # === Options:
        #
        # <tt>name</tt>:: Account name
        # <tt>address_1</tt>:: First line of address
        # <tt>address_2</tt>:: Second line of address
        # <tt>city</tt>:: City part of address
        # <tt>county</tt>:: County part of address
        # <tt>postcode</tt>:: Postal code
        # <tt>country_code</tt>:: ISO 3166-1 two letter code (example: +GB+)
        # <tt>vat_registration_number</tt>:: Valid EU VAT Number or +nil+
        # <tt>telephone_number</tt>:: Valid International telephone number in E.164 format prefixed with ’+’
        #
        # === Returns:
        #
        # <tt>Hash</tt>:: The JSON response parsed to a Hash
        # <tt>nil</tt>:: If no options were passed to update
        #
        def update_scoped_account(options)
          return nil if options.empty? || options.nil?
          request("put", "/1.0/account", [200], options)
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
fog-maestrodev-1.7.0.20121114190951 lib/fog/brightbox/requests/compute/update_scoped_account.rb
fog-1.7.0 lib/fog/brightbox/requests/compute/update_scoped_account.rb