Class: Box::Release::Memory
- Inherits:
-
Object
- Object
- Box::Release::Memory
- Includes:
- Base
- Defined in:
- lib/box/release/memory.rb
Instance Attribute Summary collapse
-
#checksum ⇒ Object
Returns the value of attribute checksum.
-
#description_url ⇒ Object
Returns the value of attribute description_url.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status_updated_at ⇒ Object
Returns the value of attribute status_updated_at.
-
#url ⇒ Object
Returns the value of attribute url.
Attributes included from Base
Instance Method Summary collapse
- #download_directory ⇒ Object
-
#initialize(attributes = {}) ⇒ Memory
constructor
A new instance of Memory.
- #install_command ⇒ Object
- #logger ⇒ Object
- #to_s ⇒ Object
Methods included from Base
#download, #file, #file_checksum, #file_exists?, #install, #newer?, #normalize_url, #to_yaml, #valid_checksum?, #yaml_file
Constructor Details
#initialize(attributes = {}) ⇒ Memory
Returns a new instance of Memory.
9 10 11 12 13 |
# File 'lib/box/release/memory.rb', line 9 def initialize(attributes = {}) attributes.each_pair do |k,v| send "#{k}=", v end end |
Instance Attribute Details
#checksum ⇒ Object
Returns the value of attribute checksum.
16 17 18 |
# File 'lib/box/release/memory.rb', line 16 def checksum @checksum end |
#description_url ⇒ Object
Returns the value of attribute description_url.
15 16 17 |
# File 'lib/box/release/memory.rb', line 15 def description_url @description_url end |
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/box/release/memory.rb', line 15 def name @name end |
#status_updated_at ⇒ Object
Returns the value of attribute status_updated_at.
15 16 17 |
# File 'lib/box/release/memory.rb', line 15 def status_updated_at @status_updated_at end |
#url ⇒ Object
Returns the value of attribute url.
16 17 18 |
# File 'lib/box/release/memory.rb', line 16 def url @url end |
Instance Method Details
#download_directory ⇒ Object
34 35 36 |
# File 'lib/box/release/memory.rb', line 34 def download_directory Box::Release.download_directory end |
#install_command ⇒ Object
30 31 32 |
# File 'lib/box/release/memory.rb', line 30 def install_command Box::Release.install_command end |
#logger ⇒ Object
26 27 28 |
# File 'lib/box/release/memory.rb', line 26 def logger Box::Release.logger end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/box/release/memory.rb', line 22 def to_s name end |