Module: Datapathy

Extended by:
Datapathy
Included in:
Datapathy
Defined in:
lib/datapathy.rb,
lib/datapathy/railtie.rb,
lib/datapathy/log_subscriber.rb

Defined Under Namespace

Modules: Adapters, Model, Railties Classes: Collection, LogSubscriber, Query, Railtie, RecordNotFound

Constant Summary collapse

VERSION =
"0.6.0"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#services_uriObject

Returns the value of attribute services_uri.



9
10
11
# File 'lib/datapathy.rb', line 9

def services_uri
  @services_uri
end

Instance Method Details

#adapterObject



16
17
18
# File 'lib/datapathy.rb', line 16

def adapter
  @adapter ||= Datapathy::Adapters::HttpAdapter.new(:services_uri => services_uri)
end

#configureObject



20
21
22
# File 'lib/datapathy.rb', line 20

def configure
  block_given? ? yield(self) : self
end

#versionObject



12
13
14
# File 'lib/datapathy.rb', line 12

def version
  VERSION
end