Class: EsuApi::Grantee

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

Constant Summary collapse

USER =
"USER"
GROUP =
"GROUP"
OTHER =
EsuApi::Grantee.new( "other", EsuApi::Grantee::GROUP )

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, grantee_type) ⇒ Grantee

Returns a new instance of Grantee.



969
970
971
972
# File 'lib/EsuApi.rb', line 969

def initialize( name, grantee_type )
  @name = name
  @grantee_type = grantee_type
end

Instance Attribute Details

#grantee_typeObject

Returns the value of attribute grantee_type.



983
984
985
# File 'lib/EsuApi.rb', line 983

def grantee_type
  @grantee_type
end

#nameObject

Returns the value of attribute name.



983
984
985
# File 'lib/EsuApi.rb', line 983

def name
  @name
end

Instance Method Details

#==(other_grantee) ⇒ Object



979
980
981
# File 'lib/EsuApi.rb', line 979

def ==(other_grantee)
  return @name == other_grantee.name && @grantee_type == other_grantee.grantee_type
end

#to_sObject



975
976
977
# File 'lib/EsuApi.rb', line 975

def to_s()
  return @name
end