class Ayadn::UserMetaObject

Attributes

code[R]
input[R]

Public Class Methods

new(hash, username = nil) click to toggle source
# File lib/ayadn/user_object.rb, line 8
def initialize hash, username = nil
  @input = hash["meta"].nil? ? {} : hash["meta"]
  @code = @input["code"]
  if code == 404
    Status.new.user_404(username)
    Errors.info("User #{username} doesn't exist")
    exit
  end
end