Class: UntitledApi::InternalCronAutoClaimOrdersFromSfdcResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb

Overview

Response data

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

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(timestamp = SKIP,
               since = SKIP,
               mend = SKIP,
               num_objects_synced = SKIP)
  @timestamp = timestamp unless timestamp == 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

#mendFloat

TODO: Write general description for this method

Returns:

  • (Float)


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_syncedFloat

TODO: Write general description for this method

Returns:

  • (Float)


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

#sinceFloat

TODO: Write general description for this method

Returns:

  • (Float)


18
19
20
# File 'lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb', line 18

def since
  @since
end

#timestampFloat

TODO: Write general description for this method

Returns:

  • (Float)


14
15
16
# File 'lib/untitled_api/models/internal_cron_auto_claim_orders_from_sfdc_response.rb', line 14

def timestamp
  @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.
  timestamp = 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(timestamp,
                                                  since,
                                                  mend,
                                                  num_objects_synced)
end

.namesObject

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

.nullablesObject

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

.optionalsObject

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