Class: Edgar::DataObjects::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/edgar/data_objects.rb

Overview

Base class for form-specific data wrappers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filing) ⇒ Base

Returns a new instance of Base.



10
11
12
# File 'lib/edgar/data_objects.rb', line 10

def initialize(filing)
  @filing = filing
end

Instance Attribute Details

#filingObject (readonly)

Returns the value of attribute filing.



8
9
10
# File 'lib/edgar/data_objects.rb', line 8

def filing
  @filing
end

Instance Method Details

#accession_numberObject



26
27
28
# File 'lib/edgar/data_objects.rb', line 26

def accession_number
  @filing.accession_number
end

#company_nameObject



18
19
20
# File 'lib/edgar/data_objects.rb', line 18

def company_name
  @filing.company
end

#filing_dateObject



22
23
24
# File 'lib/edgar/data_objects.rb', line 22

def filing_date
  @filing.filing_date
end

#form_typeObject



14
15
16
# File 'lib/edgar/data_objects.rb', line 14

def form_type
  @filing.form
end

#to_sObject



30
31
32
# File 'lib/edgar/data_objects.rb', line 30

def to_s
  "#<#{self.class.name.split('::').last} #{form_type} #{company_name}>"
end