Class: Useless::Doc::Client::Stub
- Inherits:
-
Object
- Object
- Useless::Doc::Client::Stub
- Includes:
- Useless::Doc::Client
- Defined in:
- lib/useless/doc/client.rb
Instance Method Summary collapse
Methods included from Useless::Doc::Client
Instance Method Details
#get(url) ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'lib/useless/doc/client.rb', line 51 def get(url) uri = URI(url) path = File.dirname(__FILE__) + "/../../../spec/documents#{uri.path}.json" if File.exists?(path) Useless::Doc::Serialization::Load.load(File.read(path)) end end |