Class: Factual::Write::Boost

Inherits:
Base
  • Object
show all
Defined in:
lib/factual/write/boost.rb

Constant Summary collapse

VALID_KEYS =
[:table, :factual_id, :user, :q]

Instance Method Summary collapse

Methods inherited from Base

#body, #write

Constructor Details

#initialize(api, params) ⇒ Boost

Returns a new instance of Boost.



6
7
8
9
10
# File 'lib/factual/write/boost.rb', line 6

def initialize(api, params)
  validate_params(params)
  super(api, params)
  @params_on_path = [:table]
end

Instance Method Details

#pathObject



18
19
20
# File 'lib/factual/write/boost.rb', line 18

def path
  "/t/#{@params[:table]}/boost"
end