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