Class: EsuApi::Grantee
- Inherits:
-
Object
- Object
- EsuApi::Grantee
- Defined in:
- lib/EsuApi.rb
Constant Summary collapse
Instance Attribute Summary collapse
-
#grantee_type ⇒ Object
Returns the value of attribute grantee_type.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other_grantee) ⇒ Object
-
#initialize(name, grantee_type) ⇒ Grantee
constructor
A new instance of Grantee.
- #to_s ⇒ Object
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_type ⇒ Object
Returns the value of attribute grantee_type.
983 984 985 |
# File 'lib/EsuApi.rb', line 983 def grantee_type @grantee_type end |
#name ⇒ Object
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_s ⇒ Object
975 976 977 |
# File 'lib/EsuApi.rb', line 975 def to_s() return @name end |