Sha256: 7a7d656df72e0d5c1b76a9124e22a1a1c6fcebb516c894da89a23a672b3a0e83

Contents?: true

Size: 236 Bytes

Versions: 1

Compression:

Stored size: 236 Bytes

Contents

module NationBuilder
  module Actions
    module Update

      def update id, params
        body = JSON.generate(params)
        JSON.parse(client.put("#{base_path}/#{id}", body: body).response.env[:body])
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nation_builder-0.0.13 lib/nation_builder/actions/update.rb