class Bio::BaseSpace::PurchasedProduct

Purchased product model.

Public Class Methods

new() click to toggle source

Create a new PurchasedProduct instance.

# File lib/basespace/model/purchased_product.rb, line 23
def initialize
  @swagger_types = {
    'PurchaseId'         => 'str',
    'DatePurchased'      => 'datetime',
    'Id'                 => 'str',
    'Name'               => 'str',
    'Price'              => 'str',
    'Quantity'           => 'str',
    'PersistenceStatus'  => 'str',
    'Tags'               => 'list<str>',  # only if provided as a query parameter
    'ProductIds'         => 'list<str>',  # only if provided as a query parameter
  }
  @attributes = {
    'PurchaseId'         => nil,
    'DatePurchased'      => nil,
    'Id'                 => nil,
    'Name'               => nil,
    'Price'              => nil,
    'Quantity'           => nil,
    'PersistenceStatus'  => nil,
    'Tags'               => nil,
    'ProductIds'         => nil,
  }
end

Public Instance Methods

to_s() click to toggle source

Return the name of the purchased product.

# File lib/basespace/model/purchased_product.rb, line 49
def to_s
  return get_attr('Name').to_s
end