Class: EsiClient::GetCharactersCharacterIdIndustryJobs200Ok
- Inherits:
-
Object
- Object
- EsiClient::GetCharactersCharacterIdIndustryJobs200Ok
- Defined in:
- lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb
Overview
200 ok object
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#activity_id ⇒ Object
Job activity ID.
-
#blueprint_id ⇒ Object
blueprint_id integer.
-
#blueprint_location_id ⇒ Object
Location ID of the location from which the blueprint was installed.
-
#blueprint_type_id ⇒ Object
blueprint_type_id integer.
-
#completed_character_id ⇒ Object
ID of the character which completed this job.
-
#completed_date ⇒ Object
Date and time when this job was completed.
-
#cost ⇒ Object
The sume of job installation fee and industry facility tax.
-
#duration ⇒ Object
Job duration in seconds.
-
#end_date ⇒ Object
Date and time when this job finished.
-
#facility_id ⇒ Object
ID of the facility where this job is running.
-
#installer_id ⇒ Object
ID of the character which installed this job.
-
#job_id ⇒ Object
Unique job ID.
-
#licensed_runs ⇒ Object
Number of runs blueprint is licensed for.
-
#output_location_id ⇒ Object
Location ID of the location to which the output of the job will be delivered.
-
#pause_date ⇒ Object
Date and time when this job was paused (i.e. time when the facility where this job was installed went offline).
-
#probability ⇒ Object
Chance of success for invention.
-
#product_type_id ⇒ Object
Type ID of product (manufactured, copied or invented).
-
#runs ⇒ Object
Number of runs for a manufacturing job, or number of copies to make for a blueprint copy.
-
#start_date ⇒ Object
Date and time when this job started.
-
#station_id ⇒ Object
ID of the station where industry facility is located.
-
#status ⇒ Object
status string.
-
#successful_runs ⇒ Object
Number of successful runs for this job.
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 = {}) ⇒ GetCharactersCharacterIdIndustryJobs200Ok
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 = {}) ⇒ GetCharactersCharacterIdIndustryJobs200Ok
Initializes the object
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 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 163 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?(:'activity_id') self.activity_id = attributes[:'activity_id'] end if attributes.has_key?(:'blueprint_id') self.blueprint_id = attributes[:'blueprint_id'] end if attributes.has_key?(:'blueprint_location_id') self.blueprint_location_id = attributes[:'blueprint_location_id'] end if attributes.has_key?(:'blueprint_type_id') self.blueprint_type_id = attributes[:'blueprint_type_id'] end if attributes.has_key?(:'completed_character_id') self.completed_character_id = attributes[:'completed_character_id'] end if attributes.has_key?(:'completed_date') self.completed_date = attributes[:'completed_date'] end if attributes.has_key?(:'cost') self.cost = attributes[:'cost'] end if attributes.has_key?(:'duration') self.duration = attributes[:'duration'] end if attributes.has_key?(:'end_date') self.end_date = attributes[:'end_date'] end if attributes.has_key?(:'facility_id') self.facility_id = attributes[:'facility_id'] end if attributes.has_key?(:'installer_id') self.installer_id = attributes[:'installer_id'] end if attributes.has_key?(:'job_id') self.job_id = attributes[:'job_id'] end if attributes.has_key?(:'licensed_runs') self.licensed_runs = attributes[:'licensed_runs'] end if attributes.has_key?(:'output_location_id') self.output_location_id = attributes[:'output_location_id'] end if attributes.has_key?(:'pause_date') self.pause_date = attributes[:'pause_date'] end if attributes.has_key?(:'probability') self.probability = attributes[:'probability'] end if attributes.has_key?(:'product_type_id') self.product_type_id = attributes[:'product_type_id'] end if attributes.has_key?(:'runs') self.runs = attributes[:'runs'] end if attributes.has_key?(:'start_date') self.start_date = attributes[:'start_date'] end if attributes.has_key?(:'station_id') self.station_id = attributes[:'station_id'] end if attributes.has_key?(:'status') self.status = attributes[:'status'] end if attributes.has_key?(:'successful_runs') self.successful_runs = attributes[:'successful_runs'] end end |
Instance Attribute Details
#activity_id ⇒ Object
Job activity ID
18 19 20 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 18 def activity_id @activity_id end |
#blueprint_id ⇒ Object
blueprint_id integer
21 22 23 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 21 def blueprint_id @blueprint_id end |
#blueprint_location_id ⇒ Object
Location ID of the location from which the blueprint was installed. Normally a station ID, but can also be an asset (e.g. container) or corporation facility
24 25 26 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 24 def blueprint_location_id @blueprint_location_id end |
#blueprint_type_id ⇒ Object
blueprint_type_id integer
27 28 29 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 27 def blueprint_type_id @blueprint_type_id end |
#completed_character_id ⇒ Object
ID of the character which completed this job
30 31 32 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 30 def completed_character_id @completed_character_id end |
#completed_date ⇒ Object
Date and time when this job was completed
33 34 35 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 33 def completed_date @completed_date end |
#cost ⇒ Object
The sume of job installation fee and industry facility tax
36 37 38 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 36 def cost @cost end |
#duration ⇒ Object
Job duration in seconds
39 40 41 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 39 def duration @duration end |
#end_date ⇒ Object
Date and time when this job finished
42 43 44 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 42 def end_date @end_date end |
#facility_id ⇒ Object
ID of the facility where this job is running
45 46 47 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 45 def facility_id @facility_id end |
#installer_id ⇒ Object
ID of the character which installed this job
48 49 50 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 48 def installer_id @installer_id end |
#job_id ⇒ Object
Unique job ID
51 52 53 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 51 def job_id @job_id end |
#licensed_runs ⇒ Object
Number of runs blueprint is licensed for
54 55 56 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 54 def licensed_runs @licensed_runs end |
#output_location_id ⇒ Object
Location ID of the location to which the output of the job will be delivered. Normally a station ID, but can also be a corporation facility
57 58 59 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 57 def output_location_id @output_location_id end |
#pause_date ⇒ Object
Date and time when this job was paused (i.e. time when the facility where this job was installed went offline)
60 61 62 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 60 def pause_date @pause_date end |
#probability ⇒ Object
Chance of success for invention
63 64 65 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 63 def probability @probability end |
#product_type_id ⇒ Object
Type ID of product (manufactured, copied or invented)
66 67 68 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 66 def product_type_id @product_type_id end |
#runs ⇒ Object
Number of runs for a manufacturing job, or number of copies to make for a blueprint copy
69 70 71 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 69 def runs @runs end |
#start_date ⇒ Object
Date and time when this job started
72 73 74 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 72 def start_date @start_date end |
#station_id ⇒ Object
ID of the station where industry facility is located
75 76 77 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 75 def station_id @station_id end |
#status ⇒ Object
status string
78 79 80 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 78 def status @status end |
#successful_runs ⇒ Object
Number of successful runs for this job. Equal to runs unless this is an invention job
81 82 83 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 81 def successful_runs @successful_runs end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 106 def self.attribute_map { :'activity_id' => :'activity_id', :'blueprint_id' => :'blueprint_id', :'blueprint_location_id' => :'blueprint_location_id', :'blueprint_type_id' => :'blueprint_type_id', :'completed_character_id' => :'completed_character_id', :'completed_date' => :'completed_date', :'cost' => :'cost', :'duration' => :'duration', :'end_date' => :'end_date', :'facility_id' => :'facility_id', :'installer_id' => :'installer_id', :'job_id' => :'job_id', :'licensed_runs' => :'licensed_runs', :'output_location_id' => :'output_location_id', :'pause_date' => :'pause_date', :'probability' => :'probability', :'product_type_id' => :'product_type_id', :'runs' => :'runs', :'start_date' => :'start_date', :'station_id' => :'station_id', :'status' => :'status', :'successful_runs' => :'successful_runs' } end |
.swagger_types ⇒ Object
Attribute type mapping.
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 134 def self.swagger_types { :'activity_id' => :'Integer', :'blueprint_id' => :'Integer', :'blueprint_location_id' => :'Integer', :'blueprint_type_id' => :'Integer', :'completed_character_id' => :'Integer', :'completed_date' => :'DateTime', :'cost' => :'Float', :'duration' => :'Integer', :'end_date' => :'DateTime', :'facility_id' => :'Integer', :'installer_id' => :'Integer', :'job_id' => :'Integer', :'licensed_runs' => :'Integer', :'output_location_id' => :'Integer', :'pause_date' => :'DateTime', :'probability' => :'Float', :'product_type_id' => :'Integer', :'runs' => :'Integer', :'start_date' => :'DateTime', :'station_id' => :'Integer', :'status' => :'String', :'successful_runs' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 356 def ==(o) return true if self.equal?(o) self.class == o.class && activity_id == o.activity_id && blueprint_id == o.blueprint_id && blueprint_location_id == o.blueprint_location_id && blueprint_type_id == o.blueprint_type_id && completed_character_id == o.completed_character_id && completed_date == o.completed_date && cost == o.cost && duration == o.duration && end_date == o.end_date && facility_id == o.facility_id && installer_id == o.installer_id && job_id == o.job_id && licensed_runs == o.licensed_runs && output_location_id == o.output_location_id && pause_date == o.pause_date && probability == o.probability && product_type_id == o.product_type_id && runs == o.runs && start_date == o.start_date && station_id == o.station_id && status == o.status && successful_runs == o.successful_runs end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 419 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 = EsiClient.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
485 486 487 488 489 490 491 492 493 494 495 496 497 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 485 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
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 398 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
385 386 387 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 385 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
391 392 393 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 391 def hash [activity_id, blueprint_id, blueprint_location_id, blueprint_type_id, completed_character_id, completed_date, cost, duration, end_date, facility_id, installer_id, job_id, licensed_runs, output_location_id, pause_date, probability, product_type_id, runs, start_date, station_id, status, successful_runs].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 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 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 261 def list_invalid_properties invalid_properties = Array.new if @activity_id.nil? invalid_properties.push("invalid value for 'activity_id', activity_id cannot be nil.") end if @blueprint_id.nil? invalid_properties.push("invalid value for 'blueprint_id', blueprint_id cannot be nil.") end if @blueprint_location_id.nil? invalid_properties.push("invalid value for 'blueprint_location_id', blueprint_location_id cannot be nil.") end if @blueprint_type_id.nil? invalid_properties.push("invalid value for 'blueprint_type_id', blueprint_type_id cannot be nil.") end if @duration.nil? invalid_properties.push("invalid value for 'duration', duration cannot be nil.") end if @end_date.nil? invalid_properties.push("invalid value for 'end_date', end_date cannot be nil.") end if @facility_id.nil? invalid_properties.push("invalid value for 'facility_id', facility_id cannot be nil.") end if @installer_id.nil? invalid_properties.push("invalid value for 'installer_id', installer_id cannot be nil.") end if @job_id.nil? invalid_properties.push("invalid value for 'job_id', job_id cannot be nil.") end if @output_location_id.nil? invalid_properties.push("invalid value for 'output_location_id', output_location_id cannot be nil.") end if @runs.nil? invalid_properties.push("invalid value for 'runs', runs cannot be nil.") end if @start_date.nil? invalid_properties.push("invalid value for 'start_date', start_date cannot be nil.") end if @station_id.nil? invalid_properties.push("invalid value for 'station_id', station_id cannot be nil.") end if @status.nil? invalid_properties.push("invalid value for 'status', status cannot be nil.") end return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
465 466 467 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 465 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
471 472 473 474 475 476 477 478 479 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 471 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
459 460 461 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 459 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/esi-ruby/models/get_characters_character_id_industry_jobs_200_ok.rb', line 324 def valid? return false if @activity_id.nil? return false if @blueprint_id.nil? return false if @blueprint_location_id.nil? return false if @blueprint_type_id.nil? return false if @duration.nil? return false if @end_date.nil? return false if @facility_id.nil? return false if @installer_id.nil? return false if @job_id.nil? return false if @output_location_id.nil? return false if @runs.nil? return false if @start_date.nil? return false if @station_id.nil? return false if @status.nil? status_validator = EnumAttributeValidator.new('String', ["active", "paused", "ready", "delivered", "cancelled", "reverted"]) return false unless status_validator.valid?(@status) return true end |