Class: Id3Taginator::Frames::Tos::Entities::Ownership

Inherits:
Object
  • Object
show all
Includes:
Extensions::Comparable
Defined in:
lib/id3taginator/frames/tos/entities/ownership.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Extensions::Comparable

#==, #compare

Constructor Details

#initialize(price_paid, date_of_purchase, seller) ⇒ Ownership

constructor

Parameters:

  • price_paid (String)

    the paid price. e.g. $19.99

  • date_of_purchase (String)

    date of purchase in the format YYYYMMDD

  • seller (String)

    the seller



17
18
19
20
21
# File 'lib/id3taginator/frames/tos/entities/ownership.rb', line 17

def initialize(price_paid, date_of_purchase, seller)
  @price_paid = price_paid
  @date_of_purchase = date_of_purchase
  @seller = seller
end

Instance Attribute Details

#date_of_purchaseObject

Returns the value of attribute date_of_purchase.



10
11
12
# File 'lib/id3taginator/frames/tos/entities/ownership.rb', line 10

def date_of_purchase
  @date_of_purchase
end

#price_paidObject

Returns the value of attribute price_paid.



10
11
12
# File 'lib/id3taginator/frames/tos/entities/ownership.rb', line 10

def price_paid
  @price_paid
end

#sellerObject

Returns the value of attribute seller.



10
11
12
# File 'lib/id3taginator/frames/tos/entities/ownership.rb', line 10

def seller
  @seller
end