Class: Milestoner::Models::User

Inherits:
Data
  • Object
show all
Defined in:
lib/milestoner/models/user.rb

Overview

Represents an external user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(external_id: nil, handle: nil, name: nil) ⇒ User

Returns a new instance of User.



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

def initialize external_id: nil, handle: nil, name: nil
  super
end

Instance Attribute Details

#external_idObject (readonly)

Returns the value of attribute external_id

Returns:

  • (Object)

    the current value of external_id



6
7
8
# File 'lib/milestoner/models/user.rb', line 6

def external_id
  @external_id
end

#handleObject (readonly)

Returns the value of attribute handle

Returns:

  • (Object)

    the current value of handle



6
7
8
# File 'lib/milestoner/models/user.rb', line 6

def handle
  @handle
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/milestoner/models/user.rb', line 6

def name
  @name
end