Class: SpreeCmCommissioner::ItemAvailabilitySync
- Inherits:
-
Object
- Object
- SpreeCmCommissioner::ItemAvailabilitySync
- Defined in:
- app/serializables/spree_cm_commissioner/item_availability_sync.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#last_sync_at ⇒ Object
readonly
Returns the value of attribute last_sync_at.
Instance Method Summary collapse
-
#initialize(id:, last_sync_at:) ⇒ ItemAvailabilitySync
constructor
A new instance of ItemAvailabilitySync.
Constructor Details
#initialize(id:, last_sync_at:) ⇒ ItemAvailabilitySync
Returns a new instance of ItemAvailabilitySync.
5 6 7 8 |
# File 'app/serializables/spree_cm_commissioner/item_availability_sync.rb', line 5 def initialize(id:, last_sync_at:) @id = id @last_sync_at = last_sync_at end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'app/serializables/spree_cm_commissioner/item_availability_sync.rb', line 3 def id @id end |
#last_sync_at ⇒ Object (readonly)
Returns the value of attribute last_sync_at.
3 4 5 |
# File 'app/serializables/spree_cm_commissioner/item_availability_sync.rb', line 3 def last_sync_at @last_sync_at end |