Method: PureCloud::ConnectRate#initialize
- Defined in:
- lib/purecloud/models/connect_rate.rb
#initialize(attributes = {}) ⇒ ConnectRate
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/purecloud/models/connect_rate.rb', line 34 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'attempts'] self.attempts = attributes[:'attempts'] end if attributes[:'connects'] self.connects = attributes[:'connects'] end if attributes[:'connectRatio'] self.connect_ratio = attributes[:'connectRatio'] end end |