Class: Hockey::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/hockeyhelper/version.rb

Overview

Version on HockeyApp

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hashobj, networking) ⇒ Version

Returns a new instance of Version


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/hockeyhelper/version.rb', line 27

def initialize(hashobj, networking)
  @version = hashobj['version']
  @mandatory = hashobj['mandatory']
  @config_url = hashobj['config_url']
  @download_url = hashobj['download_url']
  @timestamp = hashobj['timestamp']
  @appsize = hashobj['appsize']
  @device_family = hashobj['device_family']
  @notes = hashobj['notes']
  @status = hashobj['status']
  @shortversion = hashobj['shortversion']
  @minimum_os_version = hashobj['minimum_os_version']
  @title = hashobj['title']
  @original_hash = hashobj
  @net = networking
end

Instance Attribute Details

#appsizeObject (readonly)

Returns the value of attribute appsize


13
14
15
# File 'lib/hockeyhelper/version.rb', line 13

def appsize
  @appsize
end

#config_urlObject (readonly)

Returns the value of attribute config_url


10
11
12
# File 'lib/hockeyhelper/version.rb', line 10

def config_url
  @config_url
end

#device_familyObject (readonly)

Returns the value of attribute device_family


14
15
16
# File 'lib/hockeyhelper/version.rb', line 14

def device_family
  @device_family
end

#download_urlObject (readonly)

Returns the value of attribute download_url


11
12
13
# File 'lib/hockeyhelper/version.rb', line 11

def download_url
  @download_url
end

#mandatoryObject (readonly)

Returns the value of attribute mandatory


9
10
11
# File 'lib/hockeyhelper/version.rb', line 9

def mandatory
  @mandatory
end

#minimum_os_versionObject (readonly)

Returns the value of attribute minimum_os_version


18
19
20
# File 'lib/hockeyhelper/version.rb', line 18

def minimum_os_version
  @minimum_os_version
end

#netObject (readonly)

Returns the value of attribute net


21
22
23
# File 'lib/hockeyhelper/version.rb', line 21

def net
  @net
end

#notesObject (readonly)

Returns the value of attribute notes


15
16
17
# File 'lib/hockeyhelper/version.rb', line 15

def notes
  @notes
end

#original_hashObject (readonly)

Returns the value of attribute original_hash


20
21
22
# File 'lib/hockeyhelper/version.rb', line 20

def original_hash
  @original_hash
end

#shortversionObject (readonly)

Returns the value of attribute shortversion


17
18
19
# File 'lib/hockeyhelper/version.rb', line 17

def shortversion
  @shortversion
end

#statusObject (readonly)

Returns the value of attribute status


16
17
18
# File 'lib/hockeyhelper/version.rb', line 16

def status
  @status
end

#timestampObject (readonly)

Returns the value of attribute timestamp


12
13
14
# File 'lib/hockeyhelper/version.rb', line 12

def timestamp
  @timestamp
end

#titleObject (readonly)

Returns the value of attribute title


19
20
21
# File 'lib/hockeyhelper/version.rb', line 19

def title
  @title
end

#versionObject (readonly)

Returns the value of attribute version


8
9
10
# File 'lib/hockeyhelper/version.rb', line 8

def version
  @version
end

Class Method Details

.create_from(hashobj, networking) ⇒ Object


23
24
25
# File 'lib/hockeyhelper/version.rb', line 23

def self.create_from(hashobj, networking)
  self.new hashobj, networking
end

Instance Method Details

#inspectObject Also known as: to_s


44
45
46
# File 'lib/hockeyhelper/version.rb', line 44

def inspect
  "#{@title} #{@version}"
end