Module: Howkast::Base

Extended by:
ActiveSupport::Memoizable
Included in:
API
Defined in:
lib/howkast/base.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

HOWCAST_BASE_URI =
'www.howcast.com'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/howkast/base.rb', line 13

def self.included base
  base.send     :include, HTTParty
  #base.send     :include, HTTParty::Icebox
  
  base.base_uri HOWCAST_BASE_URI
  base.format   :xml
  #base.cache    :store    => Configuration.instance.cache_store,
  #              :timeout  => Configuration.instance.cache_timeout,
  #              :location => Configuration.instance.cache_location
                
  base.extend ClassMethods
end

Instance Method Details

#configurationObject



26
27
28
# File 'lib/howkast/base.rb', line 26

def configuration
  Configuration.instance
end