Sha256: b909de60d0a3421e8631807c4597f489c4b8bf189c95e3669075d25c2149796d
Contents?: true
Size: 253 Bytes
Versions: 3
Compression:
Stored size: 253 Bytes
Contents
module NationBuilder module Actions module Update def update id, params body = JSON.generate(params) JSON.parse(client.put("#{base_path}/#{CGI.escape(id.to_s)}", body: body).response.env[:body]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nation_builder-0.0.17 | lib/nation_builder/actions/update.rb |
nation_builder-0.0.16 | lib/nation_builder/actions/update.rb |
nation_builder-0.0.15 | lib/nation_builder/actions/update.rb |