Method: PureCloud::TrunkRecordingEnabledCount#initialize
- Defined in:
- lib/purecloud/models/trunk_recording_enabled_count.rb
#initialize(attributes = {}) ⇒ TrunkRecordingEnabledCount
Returns a new instance of TrunkRecordingEnabledCount.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/purecloud/models/trunk_recording_enabled_count.rb', line 47 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[:'enabledCount'] self.enabled_count = attributes[:'enabledCount'] end if attributes[:'disabledCount'] self.disabled_count = attributes[:'disabledCount'] end end |