Method: PureCloud::DigitLength#initialize
- Defined in:
- lib/purecloud/models/digit_length.rb
#initialize(attributes = {}) ⇒ DigitLength
Returns a new instance of DigitLength.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/purecloud/models/digit_length.rb', line 29 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[:'start'] self.start = attributes[:'start'] end if attributes[:'end'] self._end = attributes[:'end'] end end |