Class: UntitledApi::InternalCronAutoClaimOrdersFromSfdcResponse
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::InternalCronAutoClaimOrdersFromSfdcResponse
- Defined in:
- lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb
Overview
Response data
Instance Attribute Summary collapse
-
#mend ⇒ Float
TODO: Write general description for this method.
-
#num_objects_synced ⇒ Float
TODO: Write general description for this method.
-
#since ⇒ Float
TODO: Write general description for this method.
-
#timestamp ⇒ Float
TODO: Write general description for this method.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(timestamp = SKIP, since = SKIP, mend = SKIP, num_objects_synced = SKIP) ⇒ InternalCronAutoClaimOrdersFromSfdcResponse
constructor
A new instance of InternalCronAutoClaimOrdersFromSfdcResponse.
Methods inherited from BaseModel
Constructor Details
#initialize(timestamp = SKIP, since = SKIP, mend = SKIP, num_objects_synced = SKIP) ⇒ InternalCronAutoClaimOrdersFromSfdcResponse
Returns a new instance of InternalCronAutoClaimOrdersFromSfdcResponse.
53 54 55 56 57 58 59 60 61 |
# File 'lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb', line 53 def initialize( = SKIP, since = SKIP, mend = SKIP, num_objects_synced = SKIP) @timestamp = unless == SKIP @since = since unless since == SKIP @mend = mend unless mend == SKIP @num_objects_synced = num_objects_synced unless num_objects_synced == SKIP end |
Instance Attribute Details
#mend ⇒ Float
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb', line 22 def mend @mend end |
#num_objects_synced ⇒ Float
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb', line 26 def num_objects_synced @num_objects_synced end |
#since ⇒ Float
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb', line 18 def since @since end |
#timestamp ⇒ Float
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb', line 14 def @timestamp end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb', line 64 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. = hash.key?('timestamp') ? hash['timestamp'] : SKIP since = hash.key?('since') ? hash['since'] : SKIP mend = hash.key?('end') ? hash['end'] : SKIP num_objects_synced = hash.key?('num_objects_synced') ? hash['num_objects_synced'] : SKIP # Create object from extracted values. InternalCronAutoClaimOrdersFromSfdcResponse.new(, since, mend, num_objects_synced) end |
.names ⇒ Object
A mapping from model property names to API property names.
29 30 31 32 33 34 35 36 |
# File 'lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb', line 29 def self.names @_hash = {} if @_hash.nil? @_hash['timestamp'] = 'timestamp' @_hash['since'] = 'since' @_hash['mend'] = 'end' @_hash['num_objects_synced'] = 'num_objects_synced' @_hash end |
.nullables ⇒ Object
An array for nullable fields
49 50 51 |
# File 'lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb', line 49 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
39 40 41 42 43 44 45 46 |
# File 'lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb', line 39 def self.optionals %w[ timestamp since mend num_objects_synced ] end |