Class: Files::ReleasePackage
- Inherits:
-
Object
- Object
- Files::ReleasePackage
- Defined in:
- lib/files.com/models/release_package.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#architecture ⇒ Object
string - Release architecture.
-
#extension ⇒ Object
string - Package file extension.
-
#initialize(attributes = {}, options = {}) ⇒ ReleasePackage
constructor
A new instance of ReleasePackage.
-
#package_link ⇒ Object
string - Link to the package.
-
#platform ⇒ Object
string - Release platform.
-
#sha256 ⇒ Object
string - SHA256 hash of the package.
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 = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/release_package.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/release_package.rb', line 5 def @options end |
Instance Method Details
#architecture ⇒ Object
string - Release architecture
23 24 25 |
# File 'lib/files.com/models/release_package.rb', line 23 def architecture @attributes[:architecture] end |
#extension ⇒ Object
string - Package file extension
28 29 30 |
# File 'lib/files.com/models/release_package.rb', line 28 def extension @attributes[:extension] end |
#package_link ⇒ Object
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 |
#platform ⇒ Object
string - Release platform
18 19 20 |
# File 'lib/files.com/models/release_package.rb', line 18 def platform @attributes[:platform] end |
#sha256 ⇒ Object
string - SHA256 hash of the package
33 34 35 |
# File 'lib/files.com/models/release_package.rb', line 33 def sha256 @attributes[:sha256] end |