lib/casino_hub.rb in casino_hub-0.3.0 vs lib/casino_hub.rb in casino_hub-0.4.0
- old
+ new
@@ -18,21 +18,21 @@
@api_base = 'https://casino.openfan.net'
@api_key = nil
@source = nil
class << self
- attr_accessor :api_version, :api_base, :company_token, :source
+ attr_accessor :api_version,
+ :api_base,
+ :company_token,
+ :source
def api_version=(version=1.0)
@api_version = version
end
# change base url based on env
- def environment=(env)
- @environment = env
- if env != 'production'
- @api_base = 'https://casino.openfan.net/api'
- end
+ def base_url=(api_base_url)
+ @api_base = api_base_url
end
def source
@source ||= Rails.application.class.parent_name || ''
end