Class: FreeAgent::CompanyResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/free_agent/resources/company.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from FreeAgent::Resource

Instance Method Details

#retrieveObject



4
5
6
7
# File 'lib/free_agent/resources/company.rb', line 4

def retrieve
  response = get_request("company")
  Company.new(response.body["company"])
end