Class: HelloBlock::Faucet

Inherits:
Object
  • Object
show all
Extended by:
Query
Includes:
APIParameters, Endpoints
Defined in:
lib/helloblock/resources/faucet.rb

Constant Summary

Constants included from APIParameters

APIParameters::API_PARAMETERS

Constants included from Endpoints

Endpoints::ENDPOINTS

Class Method Summary collapse

Methods included from Query

[], []=, default_query, determine_parent_resource, find, inspect, last, offset, parent_class, query, to_hash, where

Methods included from Endpoints

#base_url, #version_path

Class Method Details

.withdraw(conditions) ⇒ Object



11
12
13
14
15
# File 'lib/helloblock/resources/faucet.rb', line 11

def self.withdraw(conditions)
  where(conditions.merge({post: true}))
  query[:path] = ENDPOINTS[:withdraw]
  self
end