Class: Range::FakeClient
- Inherits:
-
Struct
- Object
- Struct
- Range::FakeClient
- Defined in:
- lib/range/fake_client.rb
Overview
Provide a fake client for use in testing. Ideally a set of tests should be run against both this and the real client to ensure they are sync.
Instance Attribute Summary collapse
-
#responses ⇒ Object
Returns the value of attribute responses.
Instance Method Summary collapse
Instance Attribute Details
#responses ⇒ Object
Returns the value of attribute responses
4 5 6 |
# File 'lib/range/fake_client.rb', line 4 def responses @responses end |
Instance Method Details
#expand(query) ⇒ Object
5 6 7 |
# File 'lib/range/fake_client.rb', line 5 def (query) responses.fetch(query) end |