Class: ValidationExcluded

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-whitelist/model/validation_excluded.rb

Overview

Defines the structure for a pod excluding validations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, excluding) ⇒ ValidationExcluded

Returns a new instance of ValidationExcluded.



7
8
9
10
# File 'lib/cocoapods-whitelist/model/validation_excluded.rb', line 7

def initialize(name, excluding)
  @name = name
  @excluded_rules = excluding
end

Instance Attribute Details

#excluded_rulesObject

Returns the value of attribute excluded_rules.



5
6
7
# File 'lib/cocoapods-whitelist/model/validation_excluded.rb', line 5

def excluded_rules
  @excluded_rules
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/cocoapods-whitelist/model/validation_excluded.rb', line 4

def name
  @name
end

Instance Method Details

#excludes(rule) ⇒ Object



12
13
14
# File 'lib/cocoapods-whitelist/model/validation_excluded.rb', line 12

def excludes(rule)
  return true
end