Class: TheCity::TerminologyWriter
- Defined in:
- lib/writers/terminology_writer.rb
Instance Attribute Summary
Attributes inherited from ApiWriter
#error_messages, #response_code
Instance Method Summary collapse
-
#initialize(data) ⇒ TerminologyWriter
constructor
Constructor.
Methods inherited from ApiWriter
Constructor Details
#initialize(data) ⇒ TerminologyWriter
Constructor.
8 9 10 11 12 13 |
# File 'lib/writers/terminology_writer.rb', line 8 def initialize(data) @url_action = :put @url_data_path = "/terminology/#{data[:term]}" @url_data_params = data @updatable_fields = [:label] end |