Class: Vx::Builder::BuildConfiguration::Vexor
- Inherits:
-
Object
- Object
- Vx::Builder::BuildConfiguration::Vexor
- Defined in:
- lib/vx/builder/build_configuration/vexor.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(new_attributes) ⇒ Vexor
constructor
A new instance of Vexor.
- #read_timeout ⇒ Object
- #timeout ⇒ Object
Constructor Details
#initialize(new_attributes) ⇒ Vexor
Returns a new instance of Vexor.
8 9 10 |
# File 'lib/vx/builder/build_configuration/vexor.rb', line 8 def initialize(new_attributes) normalize_attributes(new_attributes) end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
6 7 8 |
# File 'lib/vx/builder/build_configuration/vexor.rb', line 6 def attributes @attributes end |
Instance Method Details
#read_timeout ⇒ Object
17 18 19 20 |
# File 'lib/vx/builder/build_configuration/vexor.rb', line 17 def read_timeout tm = @attributes["read_timeout"].to_i tm.to_i > 0 ? tm.to_i : nil end |
#timeout ⇒ Object
12 13 14 15 |
# File 'lib/vx/builder/build_configuration/vexor.rb', line 12 def timeout tm = @attributes["timeout"].to_i tm.to_i > 0 ? tm.to_i : nil end |