Sha256: 7af300423039898f429f17e54ad81e52fab0f3c52173dc1d3112870bee517f21

Contents?: true

Size: 441 Bytes

Versions: 11

Compression:

Stored size: 441 Bytes

Contents

module TokyoApi
  class Actionkit < Base
    def base_path
      'actionkit'
    end

    def full_user(id)
      client.get_request("#{normalized_base_path}full_user/#{url_escape(id)}").body
    end

    def user_path(id, required_fields: nil)
      path = "/#{normalized_base_path}user/#{url_escape(id)}"
      unless required_fields.nil?
        path << "?#{required_fields_param(required_fields)}"
      end
      path
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tokyo_api-1.5.1 lib/tokyo_api/actionkit.rb
tokyo_api-1.5.0 lib/tokyo_api/actionkit.rb
tokyo_api-1.4.1 lib/tokyo_api/actionkit.rb
tokyo_api-1.3.1 lib/tokyo_api/actionkit.rb
tokyo_api-1.3.0 lib/tokyo_api/actionkit.rb
tokyo_api-1.2.0 lib/tokyo_api/actionkit.rb
tokyo_api-1.1.2 lib/tokyo_api/actionkit.rb
tokyo_api-1.1.0 lib/tokyo_api/actionkit.rb
tokyo_api-1.0.4 lib/tokyo_api/actionkit.rb
tokyo_api-1.0.2 lib/tokyo_api/actionkit.rb
tokyo_api-1.0.1 lib/tokyo_api/actionkit.rb