Class: DockerfileRB::User

Inherits:
Object
  • Object
show all
Defined in:
lib/dockerfile-rb/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, group) ⇒ User

Returns a new instance of User.



4
5
6
7
# File 'lib/dockerfile-rb/user.rb', line 4

def initialize(user, group)
  @user_id = user
  @group_id = group
end

Instance Attribute Details

#group_idObject (readonly)

Returns the value of attribute group_id.



3
4
5
# File 'lib/dockerfile-rb/user.rb', line 3

def group_id
  @group_id
end

#user_idObject (readonly)

Returns the value of attribute user_id.



3
4
5
# File 'lib/dockerfile-rb/user.rb', line 3

def user_id
  @user_id
end