Sha256: 14de9040b7e43aea13af2bdad36bf9487e634b64dcd76b4c10296abe8279a1ef

Contents?: true

Size: 321 Bytes

Versions: 5

Compression:

Stored size: 321 Bytes

Contents

require "rspec"
require "fakeweb"
require "json"

require File.dirname(__FILE__) + "/../lib/api-client"

class User < ApiClient::Base
  attr_accessor :a, :b

  validates_presence_of :a
  validates_inclusion_of :a, :in => %w(a A)
end

class Admin < ApiClient::Base
  self.remote_object = "user"

  attr_accessor :a, :b
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
api-client-1.5.4 spec/spec_helper.rb
api-client-1.5.3 spec/spec_helper.rb
api-client-1.5.2 spec/spec_helper.rb
api-client-1.5.1 spec/spec_helper.rb
api-client-1.5.0 spec/spec_helper.rb