Class: OpenSandbox::PoolCapacitySpec
- Inherits:
-
Data
- Object
- Data
- OpenSandbox::PoolCapacitySpec
- Defined in:
- lib/open_sandbox/models.rb
Overview
Value object for pool capacity
Instance Attribute Summary collapse
-
#buffer_max ⇒ Object
readonly
Returns the value of attribute buffer_max.
-
#buffer_min ⇒ Object
readonly
Returns the value of attribute buffer_min.
-
#pool_max ⇒ Object
readonly
Returns the value of attribute pool_max.
-
#pool_min ⇒ Object
readonly
Returns the value of attribute pool_min.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#buffer_max ⇒ Object (readonly)
Returns the value of attribute buffer_max
84 85 86 |
# File 'lib/open_sandbox/models.rb', line 84 def buffer_max @buffer_max end |
#buffer_min ⇒ Object (readonly)
Returns the value of attribute buffer_min
84 85 86 |
# File 'lib/open_sandbox/models.rb', line 84 def buffer_min @buffer_min end |
#pool_max ⇒ Object (readonly)
Returns the value of attribute pool_max
84 85 86 |
# File 'lib/open_sandbox/models.rb', line 84 def pool_max @pool_max end |
#pool_min ⇒ Object (readonly)
Returns the value of attribute pool_min
84 85 86 |
# File 'lib/open_sandbox/models.rb', line 84 def pool_min @pool_min end |
Class Method Details
.from_hash(h) ⇒ Object
85 86 87 88 89 90 91 92 |
# File 'lib/open_sandbox/models.rb', line 85 def self.from_hash(h) new( buffer_max: h["bufferMax"], buffer_min: h["bufferMin"], pool_max: h["poolMax"], pool_min: h["poolMin"] ) end |
Instance Method Details
#to_api_hash ⇒ Object
94 95 96 |
# File 'lib/open_sandbox/models.rb', line 94 def to_api_hash { "bufferMax" => buffer_max, "bufferMin" => buffer_min, "poolMax" => pool_max, "poolMin" => pool_min } end |