Class: AdobeCRX::PackageFilterRule

Inherits:
Object
  • Object
show all
Defined in:
lib/adobe_crx/package_filter_rule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#modifierObject

Returns the value of attribute modifier.



2
3
4
# File 'lib/adobe_crx/package_filter_rule.rb', line 2

def modifier
  @modifier
end

#patternObject

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