class Drone::User
Attributes
active[R]
admin[R]
created_at[R]
email[R]
gravatar[R]
login[R]
name[R]
remote[R]
synced_at[R]
updated_at[R]
Public Class Methods
build_with_hash(hash)
click to toggle source
# File lib/drone/user.rb, line 19 def self.build_with_hash(hash) User.new( remote: hash["remote"], login: hash["login"], name: hash["name"], email: hash["email"], gravatar: hash["gravatar"], admin: hash["admin"], active: hash["active"], created_at: hash["created_at"], updated_at: hash["updated_at"], synced_at: hash["synced_at"] ) end
new( remote: nil, login: nil, name: nil, email: nil, gravatar: nil, admin: nil, active: nil, created_at: nil, updated_at: nil, synced_at: nil)
click to toggle source
# File lib/drone/user.rb, line 5 def initialize( remote: nil, login: nil, name: nil, email: nil, gravatar: nil, admin: nil, active: nil, created_at: nil, updated_at: nil, synced_at: nil) @remote = remote @login = login @name = name @email = email @gravatar = gravatar @admin = admin @active = active @created_at = created_at @updated_at = updated_at @synced_at = synced_at end