Class: ESI::GetCorporationsCorporationIdIndustryJobs200Ok
- Inherits:
-
Object
- Object
- ESI::GetCorporationsCorporationIdIndustryJobs200Ok
- Defined in:
- lib/esi-client-bvv/models/get_corporations_corporation_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.
-
#location_id ⇒ Object
ID of the location for the industry facility.
-
#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.
-
#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 = {}) ⇒ GetCorporationsCorporationIdIndustryJobs200Ok
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 = {}) ⇒ GetCorporationsCorporationIdIndustryJobs200Ok
Initializes the object
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 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 164 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?(:'location_id') self.location_id = attributes[:'location_id'] 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?(:'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
19 20 21 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 19 def activity_id @activity_id end |
#blueprint_id ⇒ Object
blueprint_id integer
22 23 24 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 22 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
25 26 27 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 25 def blueprint_location_id @blueprint_location_id end |
#blueprint_type_id ⇒ Object
blueprint_type_id integer
28 29 30 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 28 def blueprint_type_id @blueprint_type_id end |
#completed_character_id ⇒ Object
ID of the character which completed this job
31 32 33 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 31 def completed_character_id @completed_character_id end |
#completed_date ⇒ Object
Date and time when this job was completed
34 35 36 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 34 def completed_date @completed_date end |
#cost ⇒ Object
The sume of job installation fee and industry facility tax
37 38 39 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 37 def cost @cost end |
#duration ⇒ Object
Job duration in seconds
40 41 42 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 40 def duration @duration end |
#end_date ⇒ Object
Date and time when this job finished
43 44 45 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 43 def end_date @end_date end |
#facility_id ⇒ Object
ID of the facility where this job is running
46 47 48 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 46 def facility_id @facility_id end |
#installer_id ⇒ Object
ID of the character which installed this job
49 50 51 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 49 def installer_id @installer_id end |
#job_id ⇒ Object
Unique job ID
52 53 54 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 52 def job_id @job_id end |
#licensed_runs ⇒ Object
Number of runs blueprint is licensed for
55 56 57 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 55 def licensed_runs @licensed_runs end |
#location_id ⇒ Object
ID of the location for the industry facility
58 59 60 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 58 def location_id @location_id 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
61 62 63 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 61 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)
64 65 66 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 64 def pause_date @pause_date end |
#probability ⇒ Object
Chance of success for invention
67 68 69 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 67 def probability @probability end |
#product_type_id ⇒ Object
Type ID of product (manufactured, copied or invented)
70 71 72 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 70 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
73 74 75 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 73 def runs @runs end |
#start_date ⇒ Object
Date and time when this job started
76 77 78 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 76 def start_date @start_date end |
#status ⇒ Object
status string
79 80 81 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 79 def status @status end |
#successful_runs ⇒ Object
Number of successful runs for this job. Equal to runs unless this is an invention job
82 83 84 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 82 def successful_runs @successful_runs end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 107 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', :'location_id' => :'location_id', :'output_location_id' => :'output_location_id', :'pause_date' => :'pause_date', :'probability' => :'probability', :'product_type_id' => :'product_type_id', :'runs' => :'runs', :'start_date' => :'start_date', :'status' => :'status', :'successful_runs' => :'successful_runs' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 160 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 135 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', :'location_id' => :'Integer', :'output_location_id' => :'Integer', :'pause_date' => :'DateTime', :'probability' => :'Float', :'product_type_id' => :'Integer', :'runs' => :'Integer', :'start_date' => :'DateTime', :'status' => :'String', :'successful_runs' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 382 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 357 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 && location_id == o.location_id && 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 && status == o.status && successful_runs == o.successful_runs end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 456 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 420 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 = ESI.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
486 487 488 489 490 491 492 493 494 495 496 497 498 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 486 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
399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 399 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
386 387 388 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 386 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
392 393 394 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 392 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, location_id, output_location_id, pause_date, probability, product_type_id, runs, start_date, status, successful_runs].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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 321 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 262 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 @location_id.nil? invalid_properties.push("invalid value for 'location_id', location_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 @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)
466 467 468 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 466 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
472 473 474 475 476 477 478 479 480 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 472 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
460 461 462 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 460 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/esi-client-bvv/models/get_corporations_corporation_id_industry_jobs_200_ok.rb', line 325 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 @location_id.nil? return false if @output_location_id.nil? return false if @runs.nil? return false if @start_date.nil? return false if @status.nil? status_validator = EnumAttributeValidator.new('String', ["active", "cancelled", "delivered", "paused", "ready", "reverted"]) return false unless status_validator.valid?(@status) return true end |