Class: SgtnClient::Common::BundleData

Inherits:
Hash
  • Object
show all
Includes:
DataInfo
Defined in:
lib/sgtn-client/common/data.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes included from DataInfo

#last_update

Instance Method Summary collapse

Methods included from DataInfo

age, #expired?

Constructor Details

#initialize(*args) ⇒ BundleData



53
54
55
56
57
58
59
60
# File 'lib/sgtn-client/common/data.rb', line 53

def initialize(*args)
  if !args.empty? && args[0].is_a?(Hash)
    update(args[0])
    super()
  else
    super
  end
end