Class: Files::ReleasePackage

Inherits:
Object
  • Object
show all
Defined in:
lib/files.com/models/release_package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}, options = {}) ⇒ ReleasePackage

Returns a new instance of ReleasePackage.



7
8
9
10
# File 'lib/files.com/models/release_package.rb', line 7

def initialize(attributes = {}, options = {})
  @attributes = attributes || {}
  @options = options || {}
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/files.com/models/release_package.rb', line 5

def attributes
  @attributes
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/files.com/models/release_package.rb', line 5

def options
  @options
end

Instance Method Details

string - Link to the package



13
14
15
# File 'lib/files.com/models/release_package.rb', line 13

def package_link
  @attributes[:package_link]
end

#platformObject

string - Release platform



18
19
20
# File 'lib/files.com/models/release_package.rb', line 18

def platform
  @attributes[:platform]
end