Class: TextUtils::TitleMapper2::MappingStruct

Inherits:
Struct
  • Object
show all
Defined in:
lib/textutils/title_mapper2.rb

Overview

key: e.g. augsburg

title:    e.g. FC Augsburg
length (of title - not 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



21
22
23
# File 'lib/textutils/title_mapper2.rb', line 21

def key
  @key
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



21
22
23
# File 'lib/textutils/title_mapper2.rb', line 21

def length
  @length
end

#patternObject

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



21
22
23
# File 'lib/textutils/title_mapper2.rb', line 21

def pattern
  @pattern
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



21
22
23
# File 'lib/textutils/title_mapper2.rb', line 21

def title
  @title
end