Class: Rafflesia::CreateEpisodeRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CreateEpisodeRequest
- Defined in:
- lib/rafflesia/episodes/create_episode_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ environment_release_id: :environment_release_id, environment_task_id: :environment_task_id, execution: :execution, metadata: :metadata, runtime_profile_id: :runtime_profile_id, seed: :seed, timeout_seconds: :timeout_seconds }.freeze
Instance Attribute Summary collapse
-
#environment_release_id ⇒ Object
Returns the value of attribute environment_release_id.
-
#environment_task_id ⇒ Object
Returns the value of attribute environment_task_id.
-
#execution ⇒ Object
Returns the value of attribute execution.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#runtime_profile_id ⇒ Object
Returns the value of attribute runtime_profile_id.
-
#seed ⇒ Object
Returns the value of attribute seed.
-
#timeout_seconds ⇒ Object
Returns the value of attribute timeout_seconds.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateEpisodeRequest
constructor
A new instance of CreateEpisodeRequest.
Constructor Details
#initialize(json) ⇒ CreateEpisodeRequest
Returns a new instance of CreateEpisodeRequest.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/episodes/create_episode_request.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @environment_release_id = hash[:environment_release_id] @environment_task_id = hash[:environment_task_id] @execution = hash[:execution] ? Rafflesia::ExecutionSpec.new(hash[:execution]) : nil @metadata = hash[:metadata] || {} @runtime_profile_id = hash[:runtime_profile_id] @seed = hash[:seed] @timeout_seconds = hash[:timeout_seconds] end |
Instance Attribute Details
#environment_release_id ⇒ Object
Returns the value of attribute environment_release_id.
18 19 20 |
# File 'lib/rafflesia/episodes/create_episode_request.rb', line 18 def environment_release_id @environment_release_id end |
#environment_task_id ⇒ Object
Returns the value of attribute environment_task_id.
18 19 20 |
# File 'lib/rafflesia/episodes/create_episode_request.rb', line 18 def environment_task_id @environment_task_id end |
#execution ⇒ Object
Returns the value of attribute execution.
18 19 20 |
# File 'lib/rafflesia/episodes/create_episode_request.rb', line 18 def execution @execution end |
#metadata ⇒ Object
Returns the value of attribute metadata.
18 19 20 |
# File 'lib/rafflesia/episodes/create_episode_request.rb', line 18 def @metadata end |
#runtime_profile_id ⇒ Object
Returns the value of attribute runtime_profile_id.
18 19 20 |
# File 'lib/rafflesia/episodes/create_episode_request.rb', line 18 def runtime_profile_id @runtime_profile_id end |
#seed ⇒ Object
Returns the value of attribute seed.
18 19 20 |
# File 'lib/rafflesia/episodes/create_episode_request.rb', line 18 def seed @seed end |
#timeout_seconds ⇒ Object
Returns the value of attribute timeout_seconds.
18 19 20 |
# File 'lib/rafflesia/episodes/create_episode_request.rb', line 18 def timeout_seconds @timeout_seconds end |