Class: RubyBox::User

Inherits:
Item
  • Object
show all
Defined in:
lib/ruby-box/user.rb

Instance Method Summary collapse

Methods inherited from Item

#as_json, #create, #create_shared_link, #delete, #disable_shared_link, has_many, has_many_paginated, #initialize, #method_missing, #move_to, #reload_meta, #shared_link, #update

Constructor Details

This class inherits a constructor from RubyBox::Item

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RubyBox::Item

Instance Method Details

#enterpriseObject


4
5
6
7
# File 'lib/ruby-box/user.rb', line 4

def enterprise
  resp = @session.get( "#{RubyBox::API_URL}/users/#{id}?fields=enterprise" )
  resp["enterprise"]
end