Class: AtlassianAppVersions::AppVersion
Instance Attribute Summary
#version
Instance Method Summary
collapse
#<=>, #initialize, #inspect, #releaseDate, #to_s, #versionJSON
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
364
365
366
367
368
369
370
|
# File 'lib/atlassian_app_versions.rb', line 364
def method_missing(name, *args, &block)
if releaseJSON and releaseJSON.keys.member? name.to_s then
releaseJSON[name.to_s]
else
super
end
end
|
Instance Method Details
#keys ⇒ Object
359
360
361
362
|
# File 'lib/atlassian_app_versions.rb', line 359
def keys
releaseJSON ? releaseJSON.keys + super : super
end
|
#releaseJSON ⇒ Object
348
349
350
|
# File 'lib/atlassian_app_versions.rb', line 348
def releaseJSON
raise "Override me"
end
|
#relNotes ⇒ Object
352
353
354
355
356
357
|
# File 'lib/atlassian_app_versions.rb', line 352
def relNotes
if releaseJSON
releaseJSON["releaseNotes"]&.strip
end
end
|
#respond_to_missing?(name, include_private = false) ⇒ Boolean
372
373
374
|
# File 'lib/atlassian_app_versions.rb', line 372
def respond_to_missing?(name, include_private = false)
keys.member? name.to_s || super
end
|