class Hockey::User

User on HockeyApp

Attributes

email[R]
full_name[R]
id[R]
invited_at[R]
net[R]
original_hash[R]
role[R]
user_id[R]

Public Class Methods

create_from(hashobj, networking) click to toggle source
# File lib/hockeyhelper/user.rb, line 16
def self.create_from(hashobj, networking)
  self.new hashobj, networking
end
new(hashobj, networking) click to toggle source
# File lib/hockeyhelper/user.rb, line 20
def initialize(hashobj, networking)
  @role = hashobj['role']
  @id = hashobj['id']
  @user_id = hashobj['user_id']
  @full_name = hashobj['full_name']
  @email = hashobj['email']
  @invited_at = hashobj['invited_at']
  @original_hash = hashobj
  @net = networking
end

Public Instance Methods

inspect() click to toggle source
# File lib/hockeyhelper/user.rb, line 31
def inspect
  "#{@user_id}, #{@full_name}, #{@email}"
end
Also aliased as: to_s
to_s()
Alias for: inspect