Class: Precheck::URLItemToCheck
- Inherits:
-
ItemToCheck
- Object
- ItemToCheck
- Precheck::URLItemToCheck
- Defined in:
- precheck/lib/precheck/item_to_check.rb
Overview
if the data point we want to check is a URL field (like ‘marketing_url’), we’ll use this object to encapsulate it this includes the url, the property name, and what that name maps to in plain english so that we can print out nice, friendly messages.
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Attributes inherited from ItemToCheck
#friendly_name, #is_optional, #item_name
Instance Method Summary collapse
-
#initialize(url, item_name, friendly_name, is_optional = false) ⇒ URLItemToCheck
constructor
A new instance of URLItemToCheck.
- #item_data ⇒ Object
Methods inherited from ItemToCheck
Constructor Details
#initialize(url, item_name, friendly_name, is_optional = false) ⇒ URLItemToCheck
Returns a new instance of URLItemToCheck.
49 50 51 52 |
# File 'precheck/lib/precheck/item_to_check.rb', line 49 def initialize(url, item_name, friendly_name, is_optional = false) @url = url super(item_name, friendly_name, is_optional) end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
47 48 49 |
# File 'precheck/lib/precheck/item_to_check.rb', line 47 def url @url end |
Instance Method Details
#item_data ⇒ Object
54 55 56 |
# File 'precheck/lib/precheck/item_to_check.rb', line 54 def item_data return url end |