Class: Hockey::Version
- Inherits:
-
Object
- Object
- Hockey::Version
- Defined in:
- lib/hockeyhelper/version.rb
Overview
Version on HockeyApp
Instance Attribute Summary collapse
-
#appsize ⇒ Object
readonly
Returns the value of attribute appsize.
-
#config_url ⇒ Object
readonly
Returns the value of attribute config_url.
-
#device_family ⇒ Object
readonly
Returns the value of attribute device_family.
-
#download_url ⇒ Object
readonly
Returns the value of attribute download_url.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#mandatory ⇒ Object
readonly
Returns the value of attribute mandatory.
-
#minimum_os_version ⇒ Object
readonly
Returns the value of attribute minimum_os_version.
-
#net ⇒ Object
readonly
Returns the value of attribute net.
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#original_hash ⇒ Object
readonly
Returns the value of attribute original_hash.
-
#shortversion ⇒ Object
readonly
Returns the value of attribute shortversion.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hashobj, networking) ⇒ Version
constructor
A new instance of Version.
- #inspect ⇒ Object (also: #to_s)
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
#appsize ⇒ Object (readonly)
Returns the value of attribute appsize.
14 15 16 |
# File 'lib/hockeyhelper/version.rb', line 14 def appsize @appsize end |
#config_url ⇒ Object (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_family ⇒ Object (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_url ⇒ Object (readonly)
Returns the value of attribute download_url.
12 13 14 |
# File 'lib/hockeyhelper/version.rb', line 12 def download_url @download_url end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/hockeyhelper/version.rb', line 8 def id @id end |
#mandatory ⇒ Object (readonly)
Returns the value of attribute mandatory.
10 11 12 |
# File 'lib/hockeyhelper/version.rb', line 10 def mandatory @mandatory end |
#minimum_os_version ⇒ Object (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 |
#net ⇒ Object (readonly)
Returns the value of attribute net.
22 23 24 |
# File 'lib/hockeyhelper/version.rb', line 22 def net @net end |
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
16 17 18 |
# File 'lib/hockeyhelper/version.rb', line 16 def notes @notes end |
#original_hash ⇒ Object (readonly)
Returns the value of attribute original_hash.
21 22 23 |
# File 'lib/hockeyhelper/version.rb', line 21 def original_hash @original_hash end |
#shortversion ⇒ Object (readonly)
Returns the value of attribute shortversion.
18 19 20 |
# File 'lib/hockeyhelper/version.rb', line 18 def shortversion @shortversion end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
17 18 19 |
# File 'lib/hockeyhelper/version.rb', line 17 def status @status end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
13 14 15 |
# File 'lib/hockeyhelper/version.rb', line 13 def @timestamp end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
20 21 22 |
# File 'lib/hockeyhelper/version.rb', line 20 def title @title end |
#version ⇒ Object (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
#inspect ⇒ Object Also known as: to_s
46 47 48 |
# File 'lib/hockeyhelper/version.rb', line 46 def inspect "#{@title} #{@id} #{@version}" end |