Class: Box::Release::Memory

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/box/release/memory.rb

Instance Attribute Summary collapse

Attributes included from Base

#reference_url

Instance Method Summary collapse

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

#checksumObject

Returns the value of attribute checksum.



16
17
18
# File 'lib/box/release/memory.rb', line 16

def checksum
  @checksum
end

#description_urlObject

Returns the value of attribute description_url.



15
16
17
# File 'lib/box/release/memory.rb', line 15

def description_url
  @description_url
end

#nameObject

Returns the value of attribute name.



15
16
17
# File 'lib/box/release/memory.rb', line 15

def name
  @name
end

#status_updated_atObject

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

#urlObject

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_directoryObject



34
35
36
# File 'lib/box/release/memory.rb', line 34

def download_directory
  Box::Release.download_directory
end

#install_commandObject



30
31
32
# File 'lib/box/release/memory.rb', line 30

def install_command
  Box::Release.install_command
end

#loggerObject



26
27
28
# File 'lib/box/release/memory.rb', line 26

def logger
  Box::Release.logger
end

#to_sObject



22
23
24
# File 'lib/box/release/memory.rb', line 22

def to_s
  name
end