Class: Cadenya::Types::WidgetSession
- Inherits:
-
Object
- Object
- Cadenya::Types::WidgetSession
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#secrets ⇒ Object
readonly
Returns the value of attribute secrets.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata: nil, spec: nil, info: nil, state: nil, secrets: nil) ⇒ WidgetSession
constructor
A new instance of WidgetSession.
- #to_h ⇒ Object
Constructor Details
#initialize(metadata: nil, spec: nil, info: nil, state: nil, secrets: nil) ⇒ WidgetSession
Returns a new instance of WidgetSession.
7341 7342 7343 7344 7345 7346 7347 |
# File 'lib/cadenya/types.rb', line 7341 def initialize(metadata: nil, spec: nil, info: nil, state: nil, secrets: nil) @metadata = @spec = spec @info = info @state = state @secrets = secrets end |
Instance Attribute Details
#info ⇒ Object (readonly)
Returns the value of attribute info.
7339 7340 7341 |
# File 'lib/cadenya/types.rb', line 7339 def info @info end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7339 7340 7341 |
# File 'lib/cadenya/types.rb', line 7339 def @metadata end |
#secrets ⇒ Object (readonly)
Returns the value of attribute secrets.
7339 7340 7341 |
# File 'lib/cadenya/types.rb', line 7339 def secrets @secrets end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
7339 7340 7341 |
# File 'lib/cadenya/types.rb', line 7339 def spec @spec end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
7339 7340 7341 |
# File 'lib/cadenya/types.rb', line 7339 def state @state end |
Class Method Details
.from_json(data) ⇒ Object
7349 7350 7351 7352 7353 7354 7355 7356 7357 |
# File 'lib/cadenya/types.rb', line 7349 def self.from_json(data) new( metadata: data["metadata"].nil? ? nil : Types::OperationMetadata.from_json(data["metadata"]), spec: data["spec"].nil? ? nil : Types::WidgetSessionSpec.from_json(data["spec"]), info: data["info"].nil? ? nil : Types::WidgetSessionInfo.from_json(data["info"]), state: data["state"], secrets: data["secrets"].nil? ? nil : (data["secrets"]).map { |item| Types::WidgetSession_Secret.from_json(item) }, ) end |