class Galileo::User
- Galileo::User
- Reference
- Object
Defined in:
galileo/user.crConstructors
- .from_json(m : Hash(String, JSON::Any)) : User
- .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)
Instance Method Summary
- #avatar_url : String
-
#banner_url : String
If there is no banner url given this will be an empty string
- #bio : String
-
#bot_owner_id : String
If user is not a bot this will be an empty string
- #contributions : Int32
-
#current_room_id : String
If there is no current room id given this will be an empty string
- #display_name : String
- #follows_you : Bool
- #id : String
- #last_online : String
- #num_followers : Int32
- #num_following : Int32
- #online : Bool
- #staff : Bool
- #username : String
- #you_are_following : Bool
Constructor Detail
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)
#