Class: Bio::BaseSpace::PurchasedProduct
- Defined in:
- lib/basespace/model/purchased_product.rb
Overview
Purchased product model.
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize ⇒ PurchasedProduct
constructor
Create a new PurchasedProduct instance.
-
#to_s ⇒ Object
Return the name of the purchased product.
Methods inherited from Model
#get_attr, #method_missing, #set_attr, #to_str
Constructor Details
#initialize ⇒ PurchasedProduct
Create a new PurchasedProduct instance.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# 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 |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bio::BaseSpace::Model
Instance Method Details
#to_s ⇒ Object
Return the name of the purchased product.
49 50 51 |
# File 'lib/basespace/model/purchased_product.rb', line 49 def to_s return get_attr('Name').to_s end |