Class: SportDb::MapperV2::MappingStruct

Inherits:
Struct
  • Object
show all
Defined in:
lib/sportdb/formats/match/mapper.rb

Overview

key: e.g. augsburg

name:     e.g. FC Augsburg
length (of name(!!) - not regex pattern):   e.g. 11   -- do not count dots (e.g. U.S.A. => 3 or 6) why? why not?

Instance Attribute Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



20
21
22
# File 'lib/sportdb/formats/match/mapper.rb', line 20

def key
  @key
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



20
21
22
# File 'lib/sportdb/formats/match/mapper.rb', line 20

def length
  @length
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



20
21
22
# File 'lib/sportdb/formats/match/mapper.rb', line 20

def name
  @name
end

#patternObject

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



20
21
22
# File 'lib/sportdb/formats/match/mapper.rb', line 20

def pattern
  @pattern
end