Class: SecEdgar::Entity
- Inherits:
-
Object
- Object
- SecEdgar::Entity
- Defined in:
- lib/sec_edgar/entity.rb
Constant Summary collapse
- COLUMNS =
[ :cik, :name, :mailing_address, :business_address, :assigned_sic, :assigned_sic_desc, :assigned_sic_href, :assitant_director, :cik_href, :formerly_names, :state_location, :state_location_href, :state_of_incorporation ]
Class Method Summary collapse
Instance Method Summary collapse
- #filings ⇒ Object
-
#initialize(entity) ⇒ Entity
constructor
A new instance of Entity.
- #transactions ⇒ Object
Constructor Details
Class Method Details
.query(url) ⇒ Object
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/sec_edgar/entity.rb', line 36 def self.query(url) RestClient.get(url) do |response, request, result, &block| case response.code when 200 return response else response.return!(request, result, &block) end end end |
Instance Method Details
#filings ⇒ Object
28 29 30 |
# File 'lib/sec_edgar/entity.rb', line 28 def filings SecEdgar::Filing.find(@cik) end |
#transactions ⇒ Object
32 33 34 |
# File 'lib/sec_edgar/entity.rb', line 32 def transactions SecEdgar::Transaction.find(@cik) end |