Class: Nixenvironment::Archiver::ProfileInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/nixenvironment/archiver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, name, app_id, device_count, expiration_date) ⇒ ProfileInfo

Returns a new instance of ProfileInfo.



23
24
25
26
27
28
29
# File 'lib/nixenvironment/archiver.rb', line 23

def initialize(path, name, app_id, device_count, expiration_date)
  @path            = path
  @name            = name
  @app_id          = app_id
  @device_count    = device_count
  @expiration_date = expiration_date
end

Instance Attribute Details

#app_idObject

Returns the value of attribute app_id.



21
22
23
# File 'lib/nixenvironment/archiver.rb', line 21

def app_id
  @app_id
end

#device_countObject

Returns the value of attribute device_count.



21
22
23
# File 'lib/nixenvironment/archiver.rb', line 21

def device_count
  @device_count
end

#expiration_dateObject

Returns the value of attribute expiration_date.



21
22
23
# File 'lib/nixenvironment/archiver.rb', line 21

def expiration_date
  @expiration_date
end

#nameObject

Returns the value of attribute name.



21
22
23
# File 'lib/nixenvironment/archiver.rb', line 21

def name
  @name
end

#pathObject

Returns the value of attribute path.



21
22
23
# File 'lib/nixenvironment/archiver.rb', line 21

def path
  @path
end

Instance Method Details

#to_sObject



31
32
33
# File 'lib/nixenvironment/archiver.rb', line 31

def to_s
  "<path='#{@path}', name='#{@name}', app_id='#{@app_id}', device_count=#{@device_count}, expiration_date=#{@expiration_date || 'None'}>"
end