Sha256: 223226285843fb45a226763f323197516b6835b762bc53013d84fd08fbfb7a5c

Contents?: true

Size: 485 Bytes

Versions: 21

Compression:

Stored size: 485 Bytes

Contents

class Ey::Core::Client::ProviderLocation < Ey::Core::Model
  extend Ey::Core::Associations

  identity :id

  attribute :location_id
  attribute :location_name
  attribute :limits, type: :hash

  has_one :provider

  def save!
    params = {
      "id" => self.id,
      "provider_location" => {
        "limits" => self.limits,
      },
    }

    unless new_record?
      merge_attributes(self.connection.update_provider_location(params).body["provider_location"])
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
ey-core-3.6.0.autoscaling1 lib/ey-core/models/provider_location.rb
ey-core-3.6.4 lib/ey-core/models/provider_location.rb
ey-core-3.6.3 lib/ey-core/models/provider_location.rb
ey-core-3.6.1 lib/ey-core/models/provider_location.rb
groove-ey-core-3.6.3 lib/ey-core/models/provider_location.rb
groove-ey-core-3.6.2 lib/ey-core/models/provider_location.rb
groove-ey-core-3.6.1 lib/ey-core/models/provider_location.rb
ey-core-3.5.0 lib/ey-core/models/provider_location.rb
ey-core-3.4.4 lib/ey-core/models/provider_location.rb
ey-core-3.4.2 lib/ey-core/models/provider_location.rb
ey-core-3.4.1 lib/ey-core/models/provider_location.rb
ey-core-3.4.0 lib/ey-core/models/provider_location.rb
ey-core-3.3.1 lib/ey-core/models/provider_location.rb
ey-core-3.3.0 lib/ey-core/models/provider_location.rb
ey-core-3.2.6 lib/ey-core/models/provider_location.rb
ey-core-3.2.5 lib/ey-core/models/provider_location.rb
ey-core-3.2.4 lib/ey-core/models/provider_location.rb
ey-core-3.2.3 lib/ey-core/models/provider_location.rb
ey-core-3.2.2 lib/ey-core/models/provider_location.rb
ey-core-3.2.1 lib/ey-core/models/provider_location.rb