Class: EsuApi::Grant

Inherits:
Object
  • Object
show all
Defined in:
lib/EsuApi.rb

Constant Summary collapse

READ =
"READ"
WRITE =
"WRITE"
FULL_CONTROL =
"FULL_CONTROL"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(grantee, permission) ⇒ Grant

Returns a new instance of Grant.



949
950
951
952
# File 'lib/EsuApi.rb', line 949

def initialize( grantee, permission )
  @grantee = grantee
  @permission = permission
end

Instance Attribute Details

#granteeObject

Returns the value of attribute grantee.



963
964
965
# File 'lib/EsuApi.rb', line 963

def grantee
  @grantee
end

#permissionObject

Returns the value of attribute permission.



963
964
965
# File 'lib/EsuApi.rb', line 963

def permission
  @permission
end

Instance Method Details

#==(other_grant) ⇒ Object



959
960
961
# File 'lib/EsuApi.rb', line 959

def ==(other_grant)
  return @grantee == other_grant.grantee && @permission == other_grant.permission
end

#to_sObject



954
955
956
957
# File 'lib/EsuApi.rb', line 954

def to_s()
  #print "Grant::to_s()\n"
  return "#{@grantee}=#{@permission}"
end