Class: WhenHub::User

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/whenhub/user.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



10
11
12
# File 'lib/whenhub/user.rb', line 10

def client
  @client
end

#createdAtObject

Returns the value of attribute createdAt.



7
8
9
# File 'lib/whenhub/user.rb', line 7

def createdAt
  @createdAt
end

#displayNameObject

Returns the value of attribute displayName.



7
8
9
# File 'lib/whenhub/user.rb', line 7

def displayName
  @displayName
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/whenhub/user.rb', line 7

def id
  @id
end

#loginObject

Returns the value of attribute login.



7
8
9
# File 'lib/whenhub/user.rb', line 7

def 
  @login
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/whenhub/user.rb', line 7

def name
  @name
end

#photoObject

Returns the value of attribute photo.



7
8
9
# File 'lib/whenhub/user.rb', line 7

def photo
  @photo
end

#schedulesFollowedObject

Returns the value of attribute schedulesFollowed.



7
8
9
# File 'lib/whenhub/user.rb', line 7

def schedulesFollowed
  @schedulesFollowed
end

#twoFactorObject

Returns the value of attribute twoFactor.



7
8
9
# File 'lib/whenhub/user.rb', line 7

def twoFactor
  @twoFactor
end

#updatedAtObject

Returns the value of attribute updatedAt.



7
8
9
# File 'lib/whenhub/user.rb', line 7

def updatedAt
  @updatedAt
end

#usernameObject

Returns the value of attribute username.



7
8
9
# File 'lib/whenhub/user.rb', line 7

def username
  @username
end

Class Method Details

.build(client, attributes) ⇒ Object



12
13
14
15
16
# File 'lib/whenhub/user.rb', line 12

def self.build(client, attributes)
  new(attributes).tap do |schedule|
    schedule.client = client
  end
end