class Galileo::User

Defined in:

galileo/user.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_json(m : Hash(String, JSON::Any)) : User #

[View source]
def self.new(id : String, username : String, avatar_url : String, banner_url : String, bio : String, online : Bool, staff : Bool, last_online : String, current_room_id : String, display_name : String, num_following : Int32, num_followers : Int32, contributions : Int32, you_are_following : Bool, follows_you : Bool, bot_owner_id : String) #

[View source]

Instance Method Detail

def avatar_url : String #

[View source]
def bio : String #

[View source]
def bot_owner_id : String #

If user is not a bot this will be an empty string


[View source]
def contributions : Int32 #

[View source]
def current_room_id : String #

If there is no current room id given this will be an empty string


[View source]
def display_name : String #

[View source]
def follows_you : Bool #

[View source]
def id : String #

[View source]
def last_online : String #

[View source]
def num_followers : Int32 #

[View source]
def num_following : Int32 #

[View source]
def online : Bool #

[View source]
def staff : Bool #

[View source]
def username : String #

[View source]
def you_are_following : Bool #

[View source]