class Precheck::ItemToCheck
each attribute on a app version is a single item. for example: .name, .keywords, .description, will all have a single item to represent them which includes their name and a more user-friendly name we can use to print out information
Attributes
Public Class Methods
Source
# File precheck/lib/precheck/item_to_check.rb, line 10 def initialize(item_name, friendly_name, is_optional = false) @item_name = item_name @friendly_name = friendly_name @is_optional = is_optional end
Public Instance Methods
Source
# File precheck/lib/precheck/item_to_check.rb, line 20 def inspect "#{self.class}(friendly_name: #{@friendly_name}, data: #{@item_data})" end
Source
# File precheck/lib/precheck/item_to_check.rb, line 16 def item_data not_implemented(__method__) end
Source
# File precheck/lib/precheck/item_to_check.rb, line 24 def to_s "#{self.class}: #{item_name}: #{friendly_name}" end