Sha256: 9d2a382a7dafff24127af17b516f926f14bbddeb2278868c05a6ed44725bf71e

Contents?: true

Size: 269 Bytes

Versions: 2

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

class Inventory < ActiveResource::Base
  include ActiveResource::Singleton
  self.site = "http://37s.sunrise.i:3000"
  self.prefix = "/products/:product_id/"

  schema do
    integer :total
    integer :used

    string :status
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_cached_resource-0.1.0 lib/activeresource/test/fixtures/inventory.rb
active_cached_resource-0.0.1.pre lib/activeresource/test/fixtures/inventory.rb