Class: AdobeCRX::PackageFilter
- Inherits:
-
Object
- Object
- AdobeCRX::PackageFilter
- Defined in:
- lib/adobe_crx/package_filter.rb
Instance Attribute Summary collapse
-
#root ⇒ Object
Returns the value of attribute root.
-
#rules ⇒ Object
Returns the value of attribute rules.
Instance Method Summary collapse
-
#initialize(root, rules = []) ⇒ PackageFilter
constructor
A new instance of PackageFilter.
- #to_json(*a) ⇒ Object
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
#root ⇒ Object
Returns the value of attribute root.
2 3 4 |
# File 'lib/adobe_crx/package_filter.rb', line 2 def root @root end |
#rules ⇒ Object
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 |