Class: AdobeCRX::Package

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filtersObject

Returns the value of attribute filters.



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

def filters
  @filters
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#propertiesObject

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