class Bio::BaseSpace::UserCompact

User compact model.

Public Class Methods

new() click to toggle source

Return a new UserCompact instance.

# 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

Public Instance Methods

to_s() click to toggle source

Return the user ID and name as string.

# File lib/basespace/model/user_compact.rb, line 37
def to_s
  return "#{get_attr('Id')}: #{get_attr('Name')}"
end