class Precheck::TextItemToCheck

if the data point we want to check is a text field (like 'description'), we'll use this object to encapsulate it this includes the text, the property name, and what that name maps to in plain english so that we can print out nice, friendly messages.

Attributes

text[RW]

Public Class Methods

new(text, item_name, friendly_name, is_optional = false) click to toggle source
Calls superclass method Precheck::ItemToCheck::new
# File precheck/lib/precheck/item_to_check.rb, line 34
def initialize(text, item_name, friendly_name, is_optional = false)
  @text = text
  super(item_name, friendly_name, is_optional)
end

Public Instance Methods

item_data() click to toggle source
# File precheck/lib/precheck/item_to_check.rb, line 39
def item_data
  return text
end