Class: EsuApi::Metadata
- Inherits:
-
Object
- Object
- EsuApi::Metadata
- Defined in:
- lib/EsuApi.rb
Instance Attribute Summary collapse
-
#listable ⇒ Object
Returns the value of attribute listable.
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other_meta) ⇒ Object
-
#initialize(name, value, listable) ⇒ Metadata
constructor
A new instance of Metadata.
- #to_s ⇒ Object
Constructor Details
#initialize(name, value, listable) ⇒ Metadata
Returns a new instance of Metadata.
987 988 989 990 991 |
# File 'lib/EsuApi.rb', line 987 def initialize( name, value, listable ) @name = name @value = value @listable = listable end |
Instance Attribute Details
#listable ⇒ Object
Returns the value of attribute listable.
1001 1002 1003 |
# File 'lib/EsuApi.rb', line 1001 def listable @listable end |
#name ⇒ Object
Returns the value of attribute name.
1001 1002 1003 |
# File 'lib/EsuApi.rb', line 1001 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
1001 1002 1003 |
# File 'lib/EsuApi.rb', line 1001 def value @value end |
Instance Method Details
#==(other_meta) ⇒ Object
997 998 999 |
# File 'lib/EsuApi.rb', line 997 def ==() return @name==.name && @value==.value && @listable==.listable end |
#to_s ⇒ Object
993 994 995 |
# File 'lib/EsuApi.rb', line 993 def to_s() return "#{name}=#{value}" end |