Class: Dev::TargetProcess::User

Inherits:
Object
  • Object
show all
Defined in:
lib/firespring_dev_commands/target_process/user.rb

Overview

Class containing user information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ User

Returns a new instance of User.



7
8
9
10
11
12
13
# File 'lib/firespring_dev_commands/target_process/user.rb', line 7

def initialize(data)
  @data = data
  @id = data['Id']
  @type = data['ResourceType']
  @name = data['FullName']
  @login = data['Login']
end

Instance Attribute Details

#data ⇒ Object

Returns the value of attribute data.



5
6
7
# File 'lib/firespring_dev_commands/target_process/user.rb', line 5

def data
  @data
end

#id ⇒ Object

Returns the value of attribute id.



5
6
7
# File 'lib/firespring_dev_commands/target_process/user.rb', line 5

def id
  @id
end

#login ⇒ Object

Returns the value of attribute login.



5
6
7
# File 'lib/firespring_dev_commands/target_process/user.rb', line 5

def 
  @login
end

#name ⇒ Object

Returns the value of attribute name.



5
6
7
# File 'lib/firespring_dev_commands/target_process/user.rb', line 5

def name
  @name
end

#type ⇒ Object

Returns the value of attribute type.



5
6
7
# File 'lib/firespring_dev_commands/target_process/user.rb', line 5

def type
  @type
end