Class: Factual::Write::Flag
Constant Summary collapse
- VALID_KEYS =
[:table, :factual_id, :data, :problem, :user, :comment, :debug, :reference, :fields, :preferred]
Instance Method Summary collapse
-
#initialize(api, params) ⇒ Flag
constructor
A new instance of Flag.
- #path ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(api, params) ⇒ Flag
Returns a new instance of Flag.
6 7 8 9 |
# File 'lib/factual/write/flag.rb', line 6 def initialize(api, params) validate_params(params) super(api, params) end |
Instance Method Details
#path ⇒ Object
17 18 19 |
# File 'lib/factual/write/flag.rb', line 17 def path "/t/#{@params[:table]}/#{@params[:factual_id]}/flag" end |