Class: ItemListing

Inherits:
ItemApplicationRecord show all
Includes:
Restorable
Defined in:
lib/models/item_listing.rb

Instance Method Summary collapse

Instance Method Details

#assign_from_account(account) ⇒ Object



29
30
31
# File 'lib/models/item_listing.rb', line 29

def ()
  self.channel_id = .channel_id
end

#assign_from_item(item) ⇒ Object



25
26
27
# File 'lib/models/item_listing.rb', line 25

def assign_from_item(item)
  self.item_id = item.id
end