Class: DocuSign_eSign::ExtensionData
- Inherits:
-
Object
- Object
- DocuSign_eSign::ExtensionData
- Defined in:
- lib/docusign_esign/models/extension_data.rb
Instance Attribute Summary collapse
-
#action_contract ⇒ Object
Returns the value of attribute action_contract.
-
#action_input_key ⇒ Object
Returns the value of attribute action_input_key.
-
#action_name ⇒ Object
Returns the value of attribute action_name.
-
#application_id ⇒ Object
Returns the value of attribute application_id.
-
#application_name ⇒ Object
Returns the value of attribute application_name.
-
#connected_fields_data ⇒ Object
Returns the value of attribute connected_fields_data.
-
#connection_instances ⇒ Object
Returns the value of attribute connection_instances.
-
#extension_contract ⇒ Object
Returns the value of attribute extension_contract.
-
#extension_group_id ⇒ Object
Returns the value of attribute extension_group_id.
-
#extension_name ⇒ Object
Returns the value of attribute extension_name.
-
#extension_policy ⇒ Object
Returns the value of attribute extension_policy.
-
#publisher_name ⇒ Object
Returns the value of attribute publisher_name.
-
#required_for_extension ⇒ Object
Returns the value of attribute required_for_extension.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ExtensionData
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ ExtensionData
Initializes the object
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/docusign_esign/models/extension_data.rb', line 95 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'actionContract') self.action_contract = attributes[:'actionContract'] end if attributes.has_key?(:'actionInputKey') self.action_input_key = attributes[:'actionInputKey'] end if attributes.has_key?(:'actionName') self.action_name = attributes[:'actionName'] end if attributes.has_key?(:'applicationId') self.application_id = attributes[:'applicationId'] end if attributes.has_key?(:'applicationName') self.application_name = attributes[:'applicationName'] end if attributes.has_key?(:'connectedFieldsData') self.connected_fields_data = attributes[:'connectedFieldsData'] end if attributes.has_key?(:'connectionInstances') if (value = attributes[:'connectionInstances']).is_a?(Array) self.connection_instances = value end end if attributes.has_key?(:'extensionContract') self.extension_contract = attributes[:'extensionContract'] end if attributes.has_key?(:'extensionGroupId') self.extension_group_id = attributes[:'extensionGroupId'] end if attributes.has_key?(:'extensionName') self.extension_name = attributes[:'extensionName'] end if attributes.has_key?(:'extensionPolicy') self.extension_policy = attributes[:'extensionPolicy'] end if attributes.has_key?(:'publisherName') self.publisher_name = attributes[:'publisherName'] end if attributes.has_key?(:'requiredForExtension') self.required_for_extension = attributes[:'requiredForExtension'] end end |
Instance Attribute Details
#action_contract ⇒ Object
Returns the value of attribute action_contract.
17 18 19 |
# File 'lib/docusign_esign/models/extension_data.rb', line 17 def action_contract @action_contract end |
#action_input_key ⇒ Object
Returns the value of attribute action_input_key.
20 21 22 |
# File 'lib/docusign_esign/models/extension_data.rb', line 20 def action_input_key @action_input_key end |
#action_name ⇒ Object
Returns the value of attribute action_name.
23 24 25 |
# File 'lib/docusign_esign/models/extension_data.rb', line 23 def action_name @action_name end |
#application_id ⇒ Object
Returns the value of attribute application_id.
26 27 28 |
# File 'lib/docusign_esign/models/extension_data.rb', line 26 def application_id @application_id end |
#application_name ⇒ Object
Returns the value of attribute application_name.
29 30 31 |
# File 'lib/docusign_esign/models/extension_data.rb', line 29 def application_name @application_name end |
#connected_fields_data ⇒ Object
Returns the value of attribute connected_fields_data.
32 33 34 |
# File 'lib/docusign_esign/models/extension_data.rb', line 32 def connected_fields_data @connected_fields_data end |
#connection_instances ⇒ Object
Returns the value of attribute connection_instances.
35 36 37 |
# File 'lib/docusign_esign/models/extension_data.rb', line 35 def connection_instances @connection_instances end |
#extension_contract ⇒ Object
Returns the value of attribute extension_contract.
38 39 40 |
# File 'lib/docusign_esign/models/extension_data.rb', line 38 def extension_contract @extension_contract end |
#extension_group_id ⇒ Object
Returns the value of attribute extension_group_id.
41 42 43 |
# File 'lib/docusign_esign/models/extension_data.rb', line 41 def extension_group_id @extension_group_id end |
#extension_name ⇒ Object
Returns the value of attribute extension_name.
44 45 46 |
# File 'lib/docusign_esign/models/extension_data.rb', line 44 def extension_name @extension_name end |
#extension_policy ⇒ Object
Returns the value of attribute extension_policy.
47 48 49 |
# File 'lib/docusign_esign/models/extension_data.rb', line 47 def extension_policy @extension_policy end |
#publisher_name ⇒ Object
Returns the value of attribute publisher_name.
50 51 52 |
# File 'lib/docusign_esign/models/extension_data.rb', line 50 def publisher_name @publisher_name end |
#required_for_extension ⇒ Object
Returns the value of attribute required_for_extension.
53 54 55 |
# File 'lib/docusign_esign/models/extension_data.rb', line 53 def required_for_extension @required_for_extension end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/docusign_esign/models/extension_data.rb', line 56 def self.attribute_map { :'action_contract' => :'actionContract', :'action_input_key' => :'actionInputKey', :'action_name' => :'actionName', :'application_id' => :'applicationId', :'application_name' => :'applicationName', :'connected_fields_data' => :'connectedFieldsData', :'connection_instances' => :'connectionInstances', :'extension_contract' => :'extensionContract', :'extension_group_id' => :'extensionGroupId', :'extension_name' => :'extensionName', :'extension_policy' => :'extensionPolicy', :'publisher_name' => :'publisherName', :'required_for_extension' => :'requiredForExtension' } end |
.swagger_types ⇒ Object
Attribute type mapping.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/docusign_esign/models/extension_data.rb', line 75 def self.swagger_types { :'action_contract' => :'String', :'action_input_key' => :'String', :'action_name' => :'String', :'application_id' => :'String', :'application_name' => :'String', :'connected_fields_data' => :'ConnectedData', :'connection_instances' => :'Array<ConnectionInstance>', :'extension_contract' => :'String', :'extension_group_id' => :'String', :'extension_name' => :'String', :'extension_policy' => :'String', :'publisher_name' => :'String', :'required_for_extension' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/docusign_esign/models/extension_data.rb', line 171 def ==(o) return true if self.equal?(o) self.class == o.class && action_contract == o.action_contract && action_input_key == o.action_input_key && action_name == o.action_name && application_id == o.application_id && application_name == o.application_name && connected_fields_data == o.connected_fields_data && connection_instances == o.connection_instances && extension_contract == o.extension_contract && extension_group_id == o.extension_group_id && extension_name == o.extension_name && extension_policy == o.extension_policy && publisher_name == o.publisher_name && required_for_extension == o.required_for_extension end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 |
# File 'lib/docusign_esign/models/extension_data.rb', line 225 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = DocuSign_eSign.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
291 292 293 294 295 296 297 298 299 300 301 302 303 |
# File 'lib/docusign_esign/models/extension_data.rb', line 291 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
# File 'lib/docusign_esign/models/extension_data.rb', line 204 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
191 192 193 |
# File 'lib/docusign_esign/models/extension_data.rb', line 191 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
197 198 199 |
# File 'lib/docusign_esign/models/extension_data.rb', line 197 def hash [action_contract, action_input_key, action_name, application_id, application_name, connected_fields_data, connection_instances, extension_contract, extension_group_id, extension_name, extension_policy, publisher_name, required_for_extension].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
158 159 160 161 |
# File 'lib/docusign_esign/models/extension_data.rb', line 158 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
271 272 273 |
# File 'lib/docusign_esign/models/extension_data.rb', line 271 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
277 278 279 280 281 282 283 284 285 |
# File 'lib/docusign_esign/models/extension_data.rb', line 277 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
265 266 267 |
# File 'lib/docusign_esign/models/extension_data.rb', line 265 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
165 166 167 |
# File 'lib/docusign_esign/models/extension_data.rb', line 165 def valid? true end |