Class: Bio::BaseSpace::UserCompact
- Defined in:
- lib/basespace/model/user_compact.rb
Overview
User compact model.
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize ⇒ UserCompact
constructor
Return a new UserCompact instance.
-
#to_s ⇒ Object
Return the user ID and name as string.
Methods inherited from Model
#get_attr, #method_missing, #set_attr, #to_str
Constructor Details
#initialize ⇒ UserCompact
Return a new UserCompact instance.
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/basespace/model/user_compact.rb', line 23 def initialize @swagger_types = { 'Name' => 'str', 'Id' => 'str', 'Href' => 'str', } @attributes = { 'Name' => nil, # str 'Id' => nil, # str 'Href' => nil, # str } 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 user ID and name as string.
37 38 39 |
# File 'lib/basespace/model/user_compact.rb', line 37 def to_s return "#{get_attr('Id')}: #{get_attr('Name')}" end |