Sha256: ffc3c1a27195fe9e28cdf03675ca3a51fdeb3c40d5bd60e601f279bd6c069a4f

Contents?: true

Size: 754 Bytes

Versions: 3

Compression:

Stored size: 754 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/address'
require 'mls/listing'
require 'mls/property'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mls-0.0.13 lib/mls.rb
mls-0.0.12 lib/mls.rb
mls-0.0.11 lib/mls.rb