class Bio::BaseSpace::Product

Product information model.

Public Class Methods

new() click to toggle source

Create a new Product instance.

# File lib/basespace/model/product.rb, line 23
def initialize
  @swagger_types = {
    'Id'                 => 'str',
    'Name'               => 'str',
    'Price'              => 'str',
    'Quantity'           => 'str',
    'PersistenceStatus'  => 'str', # NOPERSISTENCE, ACTIVE, EXPIRED
    'Tags'               => 'list<str>',
  }
  @attributes = {
    'Id'                 => nil,
    'Name'               => nil,
    'Price'              => nil,
    'Quantity'           => nil,
    'PersistenceStatus'  => nil,
    'Tags'               => nil,
  }
end

Public Instance Methods

to_s() click to toggle source

Return the name of the product.

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