Class: Factual::Write::Insert
Constant Summary collapse
- VALID_KEYS =
[ :table, :user, :values, :comment, :reference ]
Instance Method Summary collapse
-
#initialize(api, params) ⇒ Insert
constructor
A new instance of Insert.
- #path ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(api, params) ⇒ Insert
Returns a new instance of Insert.
10 11 12 13 |
# File 'lib/factual/write/insert.rb', line 10 def initialize(api, params) validate_params(params) super(api, params) end |
Instance Method Details
#path ⇒ Object
21 22 23 |
# File 'lib/factual/write/insert.rb', line 21 def path "/t/#{@params[:table]}/insert" end |