Class: SgtnClient::Common::BundleData
- Inherits:
-
Hash
- Object
- Hash
- SgtnClient::Common::BundleData
- Includes:
- DataInfo
- Defined in:
- lib/sgtn-client/common/data.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Attributes included from DataInfo
Instance Method Summary collapse
-
#initialize(*args, origin: nil, locale: nil, component: nil) ⇒ BundleData
constructor
A new instance of BundleData.
Methods included from DataInfo
Constructor Details
#initialize(*args, origin: nil, locale: nil, component: nil) ⇒ BundleData
Returns a new instance of BundleData.
55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/sgtn-client/common/data.rb', line 55 def initialize(*args, origin: nil, locale: nil, component: nil) if !args.empty? && args[0].is_a?(Hash) update(args[0]) super() else super end @origin = origin @locale = locale @component = component end |
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
53 54 55 |
# File 'lib/sgtn-client/common/data.rb', line 53 def component @component end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
53 54 55 |
# File 'lib/sgtn-client/common/data.rb', line 53 def locale @locale end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
53 54 55 |
# File 'lib/sgtn-client/common/data.rb', line 53 def origin @origin end |