lib/docusign_esign/models/number.rb in docusign_esign-2.3.1 vs lib/docusign_esign/models/number.rb in docusign_esign-2.4.0.pre.rc
- old
+ new
@@ -4,17 +4,17 @@
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
OpenAPI spec version: v2
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
+Swagger Codegen version: 2.4.13-SNAPSHOT
=end
require 'date'
module DocuSign_eSign
-
class Number
# When set to **true**, the anchor string does not consider case when matching strings in the document. The default value is **true**.
attr_accessor :anchor_case_sensitive
# Specifies the alignment of anchor tabs with anchor strings. Possible values are **left** or **right**. The default value is **left**.
@@ -157,11 +157,10 @@
attr_accessor :x_position
# This indicates the vertical offset of the object on the page. DocuSign uses 72 DPI when determining position.
attr_accessor :y_position
-
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'anchor_case_sensitive' => :'anchorCaseSensitive',
:'anchor_horizontal_alignment' => :'anchorHorizontalAlignment',
@@ -274,11 +273,11 @@
# @param [Hash] attributes Model attributes in the form of hash
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}
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
if attributes.has_key?(:'anchorCaseSensitive')
self.anchor_case_sensitive = attributes[:'anchorCaseSensitive']
end
@@ -473,24 +472,23 @@
end
if attributes.has_key?(:'yPosition')
self.y_position = attributes[:'yPosition']
end
-
end
# Show invalid properties with the reasons. Usually used together with valid?
- # @return Array for valid properies with the reasons
+ # @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
- return invalid_properties
+ invalid_properties
end
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
- return true
+ true
end
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
@@ -564,14 +562,14 @@
# @return [Object] Returns the model itself
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 the attribute
+ # 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) } )
+ 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
@@ -649,11 +647,11 @@
# For object, use to_hash. Otherwise, just return the value
# @param [Object] value Any valid value
# @return [Hash] Returns the value in the form of hash
def _to_hash(value)
if value.is_a?(Array)
- value.compact.map{ |v| _to_hash(v) }
+ 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
@@ -662,7 +660,6 @@
value
end
end
end
-
end