Sha256: 142ac074109e419195d87e5e753c93e937cfa792ccb6e4dcf13074c5d8a42e98

Contents?: true

Size: 502 Bytes

Versions: 26

Compression:

Stored size: 502 Bytes

Contents

module TheCity

  class UserSkillWriter < ApiWriter

    # Constructor.
    #
    # @param data The json object data to save.
    def initialize(data)    
      @url_action = :post   
      @url_data_path = "/users/#{data[:user_id]}/skills"   
      @url_data_delete_path = "/users/#{data[:user_id]}/skills/#{data[:skill_id] || data[:name]}"   
      
      # user_id is not an option to submit with this path.
      data.delete(:user_id)
      
      @url_data_params = data
    end
    
  end

end


Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
the-city-admin-0.7.1 lib/writers/user_skill_writer.rb
the-city-admin-0.7.0 lib/writers/user_skill_writer.rb
the-city-admin-0.6.9 lib/writers/user_skill_writer.rb
the-city-admin-0.6.8 lib/writers/user_skill_writer.rb
the-city-admin-0.6.7 lib/writers/user_skill_writer.rb
the-city-admin-0.6.6 lib/writers/user_skill_writer.rb
the-city-admin-0.6.5 lib/writers/user_skill_writer.rb
the-city-admin-0.6.4 lib/writers/user_skill_writer.rb
the-city-admin-0.6.3 lib/writers/user_skill_writer.rb
the-city-admin-0.6.2 lib/writers/user_skill_writer.rb
the-city-admin-0.6.1 lib/writers/user_skill_writer.rb
the-city-admin-0.6.0 lib/writers/user_skill_writer.rb
the-city-admin-0.5.2 lib/writers/user_skill_writer.rb
the-city-admin-0.5.1 lib/writers/user_skill_writer.rb
the-city-admin-0.5.0 lib/writers/user_skill_writer.rb
the-city-admin-0.4.0 lib/writers/user_skill_writer.rb
the-city-admin-0.3.1 lib/writers/user_skill_writer.rb
the-city-admin-0.3.0 lib/writers/user_skill_writer.rb
the-city-admin-0.2.1 lib/writers/user_skill_writer.rb
the-city-admin-0.2.0 lib/writers/user_skill_writer.rb