Class: EsuApi::Grant
- Inherits:
-
Object
- Object
- EsuApi::Grant
- Defined in:
- lib/EsuApi.rb
Constant Summary collapse
- READ =
"READ"
- WRITE =
"WRITE"
- FULL_CONTROL =
"FULL_CONTROL"
Instance Attribute Summary collapse
-
#grantee ⇒ Object
Returns the value of attribute grantee.
-
#permission ⇒ Object
Returns the value of attribute permission.
Instance Method Summary collapse
- #==(other_grant) ⇒ Object
-
#initialize(grantee, permission) ⇒ Grant
constructor
A new instance of Grant.
- #to_s ⇒ Object
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, ) @grantee = grantee @permission = end |
Instance Attribute Details
#grantee ⇒ Object
Returns the value of attribute grantee.
963 964 965 |
# File 'lib/EsuApi.rb', line 963 def grantee @grantee end |
#permission ⇒ Object
Returns the value of attribute permission.
963 964 965 |
# File 'lib/EsuApi.rb', line 963 def @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. end |
#to_s ⇒ Object
954 955 956 957 |
# File 'lib/EsuApi.rb', line 954 def to_s() #print "Grant::to_s()\n" return "#{@grantee}=#{@permission}" end |