Sha256: 0a7c817f9f48dd9f872531b476ba5edfe1e92e7627df475bf604c954f5565373

Contents?: true

Size: 720 Bytes

Versions: 26

Compression:

Stored size: 720 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'typhoeus'
require 'json'
require './lib/logical_model'

class User < LogicalModel
  #class << self; attr_accessor :base_uri end

  self.hydra = Typhoeus::Hydra.new
  self.use_ssl = false #(Rails.env=="production")

  set_resource_url("localhost:3000","/api/v1/users")

  attribute :id
  attribute :name
  attribute :email
  attribute :password
  attribute :bio

  self.use_api_key = false
  #self.api_key_name = "token"
  #self.api_key = "8c330b5d70f86ebfa6497c901b299b79afc6d68c60df6df0bda0180d3777eb4a5528924ac96cf58a25e599b4110da3c4b690fa29263714ec6604b6cb2d943656"

  self.log_path = "logs/development.log"
  
  TIMEOUT = 5500 # miliseconds
  PER_PAGE = 9999

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
logical_model-0.7.6 client.rb
logical_model-0.7.5 client.rb
logical_model-0.7.4 client.rb
logical_model-0.7.3 client.rb
logical_model-0.7.2 client.rb
logical_model-0.7.1 client.rb
logical_model-0.7.0 client.rb
logical_model-0.6.6 client.rb
logical_model-0.6.5 client.rb
logical_model-0.6.4 client.rb
logical_model-0.6.3 client.rb
logical_model-0.6.2 client.rb
logical_model-0.6.1 client.rb
logical_model-0.6.0 client.rb
logical_model-0.5.13 client.rb
logical_model-0.5.12 client.rb
logical_model-0.5.11 client.rb
logical_model-0.5.10 client.rb
logical_model-0.5.8 client.rb
logical_model-0.5.7 client.rb