Class: AdobeCRX::PackageFilterRule
- Inherits:
-
Object
- Object
- AdobeCRX::PackageFilterRule
- Defined in:
- lib/adobe_crx/package_filter_rule.rb
Instance Attribute Summary collapse
-
#modifier ⇒ Object
Returns the value of attribute modifier.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
Instance Method Summary collapse
-
#initialize(modifier, pattern) ⇒ PackageFilterRule
constructor
A new instance of PackageFilterRule.
- #to_json(*a) ⇒ Object
Constructor Details
#initialize(modifier, pattern) ⇒ PackageFilterRule
Returns a new instance of PackageFilterRule.
4 5 6 7 |
# File 'lib/adobe_crx/package_filter_rule.rb', line 4 def initialize(modifier, pattern) @modifier = modifier @pattern = pattern end |
Instance Attribute Details
#modifier ⇒ Object
Returns the value of attribute modifier.
2 3 4 |
# File 'lib/adobe_crx/package_filter_rule.rb', line 2 def modifier @modifier end |
#pattern ⇒ Object
Returns the value of attribute pattern.
2 3 4 |
# File 'lib/adobe_crx/package_filter_rule.rb', line 2 def pattern @pattern end |
Instance Method Details
#to_json(*a) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/adobe_crx/package_filter_rule.rb', line 9 def to_json(*a) { 'modifier' => modifier, 'pattern' => pattern }.to_json(*a) end |