Sha256: 80c96a5eae38477ad64763147ad6488de37cbeca399e4f631bfcf5c04036bdc5

Contents?: true

Size: 1.49 KB

Versions: 43

Compression:

Stored size: 1.49 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

43 entries across 41 versions & 6 rubygems

Version Path
fog-2.3.0 lib/fog/cloudsigma/models/profile.rb
fog-ifeel-2.2.0 lib/fog/cloudsigma/models/profile.rb
fog-2.2.0 lib/fog/cloudsigma/models/profile.rb
fog-2.1.0 lib/fog/cloudsigma/models/profile.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/cloudsigma/models/profile.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/cloudsigma/models/profile.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/cloudsigma/models/profile.rb
fog-1.42.1 lib/fog/cloudsigma/models/profile.rb
fog-2.0.0 lib/fog/cloudsigma/models/profile.rb
fog-1.42.0 lib/fog/cloudsigma/models/profile.rb
fog-1.41.0 lib/fog/cloudsigma/models/profile.rb
fog-1.40.0 lib/fog/cloudsigma/models/profile.rb
fog-1.39.0 lib/fog/cloudsigma/models/profile.rb
fog-1.38.0 lib/fog/cloudsigma/models/profile.rb
fog-1.37.0 lib/fog/cloudsigma/models/profile.rb
fog-1.36.0 lib/fog/cloudsigma/models/profile.rb
fog-1.35.0 lib/fog/cloudsigma/models/profile.rb
fog-2.0.0.pre.0 lib/fog/cloudsigma/models/profile.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/cloudsigma/models/profile.rb
fog-1.34.0 lib/fog/cloudsigma/models/profile.rb