Sha256: 7dec4f71438a3f38c9e6cc44a05d39cda71394fd4c6411d873db282779968131

Contents?: true

Size: 774 Bytes

Versions: 10

Compression:

Stored size: 774 Bytes

Contents

require 'mls/version'
require 'active_resource'

module MLS

  class << self

     attr_accessor :environment

     def env
       @environment ||= 'development'
     end

     def site
       env == 'production' ? 'http://mls.42floors.com' : 'http://staging.mls.42floors.com'
     end

     def asset_host=(host)
       @asset_host = host
     end

     def asset_host
       return @asset_host if @asset_host
       env == 'production' ? 'assets.42floors.com' : 's3.amazonaws.com/staging-assets.42floors.com'
     end

   end

   class Resource < ActiveResource::Base
      self.site      = MLS.site
      self.user      = nil
      self.password  = nil
   end

end

require 'mls/use'
require 'mls/photo'
require 'mls/address'
require 'mls/listing'
require 'mls/property'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mls-0.0.23 lib/mls.rb
mls-0.0.22 lib/mls.rb
mls-0.0.21 lib/mls.rb
mls-0.0.20 lib/mls.rb
mls-0.0.19 lib/mls.rb
mls-0.0.18 lib/mls.rb
mls-0.0.17 lib/mls.rb
mls-0.0.16 lib/mls.rb
mls-0.0.15 lib/mls.rb
mls-0.0.14 lib/mls.rb