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.



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

def initialize(hashobj, networking)
  @id = hashobj['id']
  @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.



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

def appsize
  @appsize
end

#config_urlObject (readonly)

Returns the value of attribute config_url.



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

def config_url
  @config_url
end

#device_familyObject (readonly)

Returns the value of attribute device_family.



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

def device_family
  @device_family
end

#download_urlObject (readonly)

Returns the value of attribute download_url.



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

def download_url
  @download_url
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#mandatoryObject (readonly)

Returns the value of attribute mandatory.



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

def mandatory
  @mandatory
end

#minimum_os_versionObject (readonly)

Returns the value of attribute minimum_os_version.



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

def minimum_os_version
  @minimum_os_version
end

#netObject (readonly)

Returns the value of attribute net.



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

def net
  @net
end

#notesObject (readonly)

Returns the value of attribute notes.



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

def notes
  @notes
end

#original_hashObject (readonly)

Returns the value of attribute original_hash.



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

def original_hash
  @original_hash
end

#shortversionObject (readonly)

Returns the value of attribute shortversion.



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

def shortversion
  @shortversion
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



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

def timestamp
  @timestamp
end

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end

#versionObject (readonly)

Returns the value of attribute version.



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

def version
  @version
end

Class Method Details

.create_from(hashobj, networking) ⇒ Object



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

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

Instance Method Details

#inspectObject Also known as: to_s



46
47
48
# File 'lib/hockeyhelper/version.rb', line 46

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