Class: AdobeCRX::PackageFilter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root, rules = []) ⇒ PackageFilter

Returns a new instance of PackageFilter.



4
5
6
7
# File 'lib/adobe_crx/package_filter.rb', line 4

def initialize(root, rules = [])
  @root = root
  @rules = rules
end

Instance Attribute Details

#rootObject

Returns the value of attribute root.



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

def root
  @root
end

#rulesObject

Returns the value of attribute rules.



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

def rules
  @rules
end

Instance Method Details

#to_json(*a) ⇒ Object



9
10
11
12
13
14
# File 'lib/adobe_crx/package_filter.rb', line 9

def to_json(*a)
  {
    'root' => root,
    'rules' => rules
  }.to_json(*a)
end