lib/purecloud/models/flow_terminate_request.rb in purecloud-0.18.0 vs lib/purecloud/models/flow_terminate_request.rb in purecloud-0.25.0

- old
+ new

@@ -1,31 +1,25 @@ require 'date' module PureCloud - # Passed into a terminate command to customize the termination/cancellation action. + # Passed into a terminate command to customize the termination action. class FlowTerminateRequest - # force the termination of a flow. - attr_accessor :force - - # Reason for termination. + # Reason code for a termination. attr_accessor :reason # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'force' => :'force', - :'reason' => :'reason' } end # Attribute type mapping. def self.swagger_types { - :'force' => :'BOOLEAN', :'reason' => :'String' } end @@ -34,37 +28,30 @@ # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} - if attributes[:'force'] - self.force = attributes[:'force'] - else - self.force = false - end - if attributes[:'reason'] self.reason = attributes[:'reason'] end end # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && - force == o.force && reason == o.reason end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [force, reason].hash + [reason].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)