Class: SwaggerClient::PublicApiSaveJobRequest
- Inherits:
-
Object
- Object
- SwaggerClient::PublicApiSaveJobRequest
- Defined in:
- lib/swagger_client/models/public_api_save_job_request.rb
Instance Attribute Summary collapse
-
#address_business_city ⇒ Object
Returns the value of attribute address_business_city.
-
#address_business_country ⇒ Object
Returns the value of attribute address_business_country.
-
#address_business_is_primary ⇒ Object
Returns the value of attribute address_business_is_primary.
-
#address_business_line1 ⇒ Object
Returns the value of attribute address_business_line1.
-
#address_business_state ⇒ Object
Returns the value of attribute address_business_state.
-
#address_business_zip_code ⇒ Object
Returns the value of attribute address_business_zip_code.
-
#address_other_city ⇒ Object
Returns the value of attribute address_other_city.
-
#address_other_country ⇒ Object
Returns the value of attribute address_other_country.
-
#address_other_is_primary ⇒ Object
Returns the value of attribute address_other_is_primary.
-
#address_other_line1 ⇒ Object
Returns the value of attribute address_other_line1.
-
#address_other_state ⇒ Object
Returns the value of attribute address_other_state.
-
#address_other_zip_code ⇒ Object
Returns the value of attribute address_other_zip_code.
-
#company_id ⇒ Object
Returns the value of attribute company_id.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#compensation ⇒ Object
Returns the value of attribute compensation.
-
#compensation_details ⇒ Object
Returns the value of attribute compensation_details.
-
#description ⇒ Object
Returns the value of attribute description.
-
#external_primary_key ⇒ Object
Returns the value of attribute external_primary_key.
-
#job_title_id ⇒ Object
Returns the value of attribute job_title_id.
-
#job_title_name ⇒ Object
Returns the value of attribute job_title_name.
-
#job_types ⇒ Object
Returns the value of attribute job_types.
-
#name ⇒ Object
Returns the value of attribute name.
-
#number_of_openings ⇒ Object
Returns the value of attribute number_of_openings.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#website_description ⇒ Object
Returns the value of attribute website_description.
-
#website_description_is_primary ⇒ Object
Returns the value of attribute website_description_is_primary.
-
#website_other ⇒ Object
Returns the value of attribute website_other.
-
#website_other_is_primary ⇒ Object
Returns the value of attribute website_other_is_primary.
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 = {}) ⇒ PublicApiSaveJobRequest
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 = {}) ⇒ PublicApiSaveJobRequest
Initializes the object
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 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 262 263 264 265 266 267 268 269 270 271 272 273 274 275 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 149 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?(:'Name') self.name = attributes[:'Name'] end if attributes.has_key?(:'Description') self.description = attributes[:'Description'] end if attributes.has_key?(:'StartDate') self.start_date = attributes[:'StartDate'] end if attributes.has_key?(:'NumberOfOpenings') self.number_of_openings = attributes[:'NumberOfOpenings'] end if attributes.has_key?(:'ExternalPrimaryKey') self.external_primary_key = attributes[:'ExternalPrimaryKey'] end if attributes.has_key?(:'Company_Id') self.company_id = attributes[:'Company_Id'] end if attributes.has_key?(:'Company_Name') self.company_name = attributes[:'Company_Name'] end if attributes.has_key?(:'JobTitle_Id') self.job_title_id = attributes[:'JobTitle_Id'] end if attributes.has_key?(:'JobTitle_Name') self.job_title_name = attributes[:'JobTitle_Name'] end if attributes.has_key?(:'JobTypes') if (value = attributes[:'JobTypes']).is_a?(Array) self.job_types = value end end if attributes.has_key?(:'Compensation') self.compensation = attributes[:'Compensation'] end if attributes.has_key?(:'CompensationDetails') self.compensation_details = attributes[:'CompensationDetails'] end if attributes.has_key?(:'Tags') if (value = attributes[:'Tags']).is_a?(Array) self. = value end end if attributes.has_key?(:'Address_Business_Line1') self.address_business_line1 = attributes[:'Address_Business_Line1'] end if attributes.has_key?(:'Address_Business_City') self.address_business_city = attributes[:'Address_Business_City'] end if attributes.has_key?(:'Address_Business_State') self.address_business_state = attributes[:'Address_Business_State'] end if attributes.has_key?(:'Address_Business_ZipCode') self.address_business_zip_code = attributes[:'Address_Business_ZipCode'] end if attributes.has_key?(:'Address_Business_Country') self.address_business_country = attributes[:'Address_Business_Country'] end if attributes.has_key?(:'Address_Business_IsPrimary') self.address_business_is_primary = attributes[:'Address_Business_IsPrimary'] end if attributes.has_key?(:'Address_Other_Line1') self.address_other_line1 = attributes[:'Address_Other_Line1'] end if attributes.has_key?(:'Address_Other_City') self.address_other_city = attributes[:'Address_Other_City'] end if attributes.has_key?(:'Address_Other_State') self.address_other_state = attributes[:'Address_Other_State'] end if attributes.has_key?(:'Address_Other_ZipCode') self.address_other_zip_code = attributes[:'Address_Other_ZipCode'] end if attributes.has_key?(:'Address_Other_Country') self.address_other_country = attributes[:'Address_Other_Country'] end if attributes.has_key?(:'Address_Other_IsPrimary') self.address_other_is_primary = attributes[:'Address_Other_IsPrimary'] end if attributes.has_key?(:'Website_Description') self.website_description = attributes[:'Website_Description'] end if attributes.has_key?(:'Website_Description_IsPrimary') self.website_description_is_primary = attributes[:'Website_Description_IsPrimary'] end if attributes.has_key?(:'Website_Other') self.website_other = attributes[:'Website_Other'] end if attributes.has_key?(:'Website_Other_IsPrimary') self.website_other_is_primary = attributes[:'Website_Other_IsPrimary'] end end |
Instance Attribute Details
#address_business_city ⇒ Object
Returns the value of attribute address_business_city.
46 47 48 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 46 def address_business_city @address_business_city end |
#address_business_country ⇒ Object
Returns the value of attribute address_business_country.
52 53 54 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 52 def address_business_country @address_business_country end |
#address_business_is_primary ⇒ Object
Returns the value of attribute address_business_is_primary.
54 55 56 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 54 def address_business_is_primary @address_business_is_primary end |
#address_business_line1 ⇒ Object
Returns the value of attribute address_business_line1.
44 45 46 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 44 def address_business_line1 @address_business_line1 end |
#address_business_state ⇒ Object
Returns the value of attribute address_business_state.
48 49 50 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 48 def address_business_state @address_business_state end |
#address_business_zip_code ⇒ Object
Returns the value of attribute address_business_zip_code.
50 51 52 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 50 def address_business_zip_code @address_business_zip_code end |
#address_other_city ⇒ Object
Returns the value of attribute address_other_city.
58 59 60 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 58 def address_other_city @address_other_city end |
#address_other_country ⇒ Object
Returns the value of attribute address_other_country.
64 65 66 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 64 def address_other_country @address_other_country end |
#address_other_is_primary ⇒ Object
Returns the value of attribute address_other_is_primary.
66 67 68 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 66 def address_other_is_primary @address_other_is_primary end |
#address_other_line1 ⇒ Object
Returns the value of attribute address_other_line1.
56 57 58 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 56 def address_other_line1 @address_other_line1 end |
#address_other_state ⇒ Object
Returns the value of attribute address_other_state.
60 61 62 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 60 def address_other_state @address_other_state end |
#address_other_zip_code ⇒ Object
Returns the value of attribute address_other_zip_code.
62 63 64 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 62 def address_other_zip_code @address_other_zip_code end |
#company_id ⇒ Object
Returns the value of attribute company_id.
28 29 30 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 28 def company_id @company_id end |
#company_name ⇒ Object
Returns the value of attribute company_name.
30 31 32 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 30 def company_name @company_name end |
#compensation ⇒ Object
Returns the value of attribute compensation.
38 39 40 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 38 def compensation @compensation end |
#compensation_details ⇒ Object
Returns the value of attribute compensation_details.
40 41 42 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 40 def compensation_details @compensation_details end |
#description ⇒ Object
Returns the value of attribute description.
20 21 22 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 20 def description @description end |
#external_primary_key ⇒ Object
Returns the value of attribute external_primary_key.
26 27 28 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 26 def external_primary_key @external_primary_key end |
#job_title_id ⇒ Object
Returns the value of attribute job_title_id.
32 33 34 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 32 def job_title_id @job_title_id end |
#job_title_name ⇒ Object
Returns the value of attribute job_title_name.
34 35 36 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 34 def job_title_name @job_title_name end |
#job_types ⇒ Object
Returns the value of attribute job_types.
36 37 38 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 36 def job_types @job_types end |
#name ⇒ Object
Returns the value of attribute name.
18 19 20 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 18 def name @name end |
#number_of_openings ⇒ Object
Returns the value of attribute number_of_openings.
24 25 26 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 24 def number_of_openings @number_of_openings end |
#start_date ⇒ Object
Returns the value of attribute start_date.
22 23 24 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 22 def start_date @start_date end |
#tags ⇒ Object
Returns the value of attribute tags.
42 43 44 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 42 def @tags end |
#website_description ⇒ Object
Returns the value of attribute website_description.
68 69 70 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 68 def website_description @website_description end |
#website_description_is_primary ⇒ Object
Returns the value of attribute website_description_is_primary.
70 71 72 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 70 def website_description_is_primary @website_description_is_primary end |
#website_other ⇒ Object
Returns the value of attribute website_other.
72 73 74 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 72 def website_other @website_other end |
#website_other_is_primary ⇒ Object
Returns the value of attribute website_other_is_primary.
74 75 76 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 74 def website_other_is_primary @website_other_is_primary end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 78 def self.attribute_map { :'name' => :'Name', :'description' => :'Description', :'start_date' => :'StartDate', :'number_of_openings' => :'NumberOfOpenings', :'external_primary_key' => :'ExternalPrimaryKey', :'company_id' => :'Company_Id', :'company_name' => :'Company_Name', :'job_title_id' => :'JobTitle_Id', :'job_title_name' => :'JobTitle_Name', :'job_types' => :'JobTypes', :'compensation' => :'Compensation', :'compensation_details' => :'CompensationDetails', :'tags' => :'Tags', :'address_business_line1' => :'Address_Business_Line1', :'address_business_city' => :'Address_Business_City', :'address_business_state' => :'Address_Business_State', :'address_business_zip_code' => :'Address_Business_ZipCode', :'address_business_country' => :'Address_Business_Country', :'address_business_is_primary' => :'Address_Business_IsPrimary', :'address_other_line1' => :'Address_Other_Line1', :'address_other_city' => :'Address_Other_City', :'address_other_state' => :'Address_Other_State', :'address_other_zip_code' => :'Address_Other_ZipCode', :'address_other_country' => :'Address_Other_Country', :'address_other_is_primary' => :'Address_Other_IsPrimary', :'website_description' => :'Website_Description', :'website_description_is_primary' => :'Website_Description_IsPrimary', :'website_other' => :'Website_Other', :'website_other_is_primary' => :'Website_Other_IsPrimary' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 113 def self.swagger_types { :'name' => :'String', :'description' => :'String', :'start_date' => :'DateTime', :'number_of_openings' => :'Integer', :'external_primary_key' => :'String', :'company_id' => :'String', :'company_name' => :'String', :'job_title_id' => :'String', :'job_title_name' => :'String', :'job_types' => :'Array<PublicApiSaveJobRequestJobType>', :'compensation' => :'Float', :'compensation_details' => :'String', :'tags' => :'Hash<String, Array<String>>', :'address_business_line1' => :'String', :'address_business_city' => :'String', :'address_business_state' => :'String', :'address_business_zip_code' => :'String', :'address_business_country' => :'String', :'address_business_is_primary' => :'BOOLEAN', :'address_other_line1' => :'String', :'address_other_city' => :'String', :'address_other_state' => :'String', :'address_other_zip_code' => :'String', :'address_other_country' => :'String', :'address_other_is_primary' => :'BOOLEAN', :'website_description' => :'String', :'website_description_is_primary' => :'BOOLEAN', :'website_other' => :'String', :'website_other_is_primary' => :'BOOLEAN' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 292 def ==(o) return true if self.equal?(o) self.class == o.class && name == o.name && description == o.description && start_date == o.start_date && number_of_openings == o.number_of_openings && external_primary_key == o.external_primary_key && company_id == o.company_id && company_name == o.company_name && job_title_id == o.job_title_id && job_title_name == o.job_title_name && job_types == o.job_types && compensation == o.compensation && compensation_details == o.compensation_details && == o. && address_business_line1 == o.address_business_line1 && address_business_city == o.address_business_city && address_business_state == o.address_business_state && address_business_zip_code == o.address_business_zip_code && address_business_country == o.address_business_country && address_business_is_primary == o.address_business_is_primary && address_other_line1 == o.address_other_line1 && address_other_city == o.address_other_city && address_other_state == o.address_other_state && address_other_zip_code == o.address_other_zip_code && address_other_country == o.address_other_country && address_other_is_primary == o.address_other_is_primary && website_description == o.website_description && website_description_is_primary == o.website_description_is_primary && website_other == o.website_other && website_other_is_primary == o.website_other_is_primary end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 362 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 = SwaggerClient.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
428 429 430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 428 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
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 341 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 # 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
328 329 330 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 328 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
334 335 336 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 334 def hash [name, description, start_date, number_of_openings, external_primary_key, company_id, company_name, job_title_id, job_title_name, job_types, compensation, compensation_details, , address_business_line1, address_business_city, address_business_state, address_business_zip_code, address_business_country, address_business_is_primary, address_other_line1, address_other_city, address_other_state, address_other_zip_code, address_other_country, address_other_is_primary, website_description, website_description_is_primary, website_other, website_other_is_primary].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
279 280 281 282 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 279 def list_invalid_properties invalid_properties = Array.new return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
408 409 410 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 408 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
414 415 416 417 418 419 420 421 422 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 414 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
402 403 404 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 402 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
286 287 288 |
# File 'lib/swagger_client/models/public_api_save_job_request.rb', line 286 def valid? return true end |