Class: Vx::Builder::BuildConfiguration::Vexor

Inherits:
Object
  • Object
show all
Defined in:
lib/vx/builder/build_configuration/vexor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (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_timeoutObject



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

#timeoutObject



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