Sha256: bb955d9a61ab326279133eefd3a2655da3061ca3f46328aa9f23644e0f3fde8c

Contents?: true

Size: 1.5 KB

Versions: 51

Compression:

Stored size: 1.5 KB

Contents

require 'fog/cloudsigma/nested_model'

module Fog
  module Compute
    class CloudSigma
      class Profile < Fog::CloudSigma::CloudsigmaModel
        identity :uuid

        attribute :last_name, :type => :string
        attribute :login_sms, :type => :boolean
        attribute :currency, :type => :string
        attribute :meta
        attribute :api_https_only, :type => :boolean
        attribute :first_name, :type => :string
        attribute :uuid, :type => :string
        attribute :title, :type => :string
        attribute :state, :type => :string
        attribute :email, :type => :string
        attribute :vat, :type => :string
        attribute :autotopup_amount, :type => :float
        attribute :reseller, :type => :string
        attribute :company, :type => :string
        attribute :key_auth, :type => :boolean
        attribute :phone, :type => :string
        attribute :address, :type => :string
        attribute :mailing_list, :type => :boolean
        attribute :town, :type => :string
        attribute :has_autotopup, :type => :boolean
        attribute :my_notes, :type => :string
        attribute :bank_reference, :type => :string
        attribute :language, :type => :string
        attribute :country, :type => :string
        attribute :postcode, :type => :string


        def save
          update
        end

        def update
          response = service.update_profile(attributes)
          self.attribute.merge!(response.body)

          self
        end

      end
    end
  end
end

Version data entries

51 entries across 51 versions & 3 rubygems

Version Path
fog-maestrodev-1.20.0.20140305101839 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/cloudsigma/models/profile.rb
fog-1.20.0 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/cloudsigma/models/profile.rb
fog-1.19.0 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/cloudsigma/models/profile.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/cloudsigma/models/profile.rb