class Proz::GetWiwoEntry

Attributes

include_private[R]
token[R]
user_uuid[R]

Public Class Methods

new(token:, user_uuid:, include_private:) click to toggle source
# File lib/proz/get_wiwo_entry.rb, line 8
def initialize(token:, user_uuid:, include_private:)
  @token = token
  @include_private = include_private
  @user_uuid = user_uuid
end

Public Instance Methods

get() click to toggle source
# File lib/proz/get_wiwo_entry.rb, line 14
def get
  if include_private
    self.class.get("/wiwo?user_uuid=" + user_uuid + "&include_private=1",
    headers: { 'Authorization' => "Bearer #{token}" } )
  else
    self.class.get("/wiwo?user_uuid=" + user_uuid,
    headers: { 'Authorization' => "Bearer #{token}" } )
  end
end