Class: EsuApi::Metadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#listableObject

Returns the value of attribute listable.



1001
1002
1003
# File 'lib/EsuApi.rb', line 1001

def listable
  @listable
end

#nameObject

Returns the value of attribute name.



1001
1002
1003
# File 'lib/EsuApi.rb', line 1001

def name
  @name
end

#valueObject

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 ==(other_meta)
  return @name==other_meta.name && @value==other_meta.value && @listable==other_meta.listable
end

#to_sObject



993
994
995
# File 'lib/EsuApi.rb', line 993

def to_s()
  return "#{name}=#{value}"
end