Method: Fauna::Context.client
- Defined in:
- lib/fauna/context.rb
.client ⇒ Object
Returns the current context’s client, or if there is none, raises NoContextError.
134 135 136 |
# File 'lib/fauna/context.rb', line 134 def self.client stack.last || fail(NoContextError, 'You must be within a Fauna::Context.block to perform operations.') end |