Class: StartupStats::Formd::Filing

Inherits:
Object
  • Object
show all
Defined in:
lib/startupstats/formd/models/filing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response = {}) ⇒ Filing

Returns a new instance of Filing.



9
10
11
12
13
14
15
16
# File 'lib/startupstats/formd/models/filing.rb', line 9

def initialize response = {}
	response.each do |k, v|  
		instance_variable_set("@#{k}",v) unless v.nil? || k == :company
		if k == :company
			instance_variable_set("@#{k}", StartupStats::Formd::Company.new(v) )
		end
	end
end

Instance Attribute Details

#business_comboObject

Returns the value of attribute business_combo.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def business_combo
  @business_combo
end

#companyObject

this will store all details



8
9
10
# File 'lib/startupstats/formd/models/filing.rb', line 8

def company
  @company
end

#company_idObject

Returns the value of attribute company_id.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def company_id
  @company_id
end

#filing_dateObject

Returns the value of attribute filing_date.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def filing_date
  @filing_date
end

#filing_idObject

Returns the value of attribute filing_id.



5
6
7
# File 'lib/startupstats/formd/models/filing.rb', line 5

def filing_id
  @filing_id
end

#filing_numObject

Returns the value of attribute filing_num.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def filing_num
  @filing_num
end

#filing_typeObject

Returns the value of attribute filing_type.



5
6
7
# File 'lib/startupstats/formd/models/filing.rb', line 5

def filing_type
  @filing_type
end

#filing_url_htmlObject

Returns the value of attribute filing_url_html.



5
6
7
# File 'lib/startupstats/formd/models/filing.rb', line 5

def filing_url_html
  @filing_url_html
end

#filing_url_xmlObject

Returns the value of attribute filing_url_xml.



5
6
7
# File 'lib/startupstats/formd/models/filing.rb', line 5

def filing_url_xml
  @filing_url_xml
end

#finders_feeObject

Returns the value of attribute finders_fee.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def finders_fee
  @finders_fee
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/startupstats/formd/models/filing.rb', line 5

def id
  @id
end

#industry_groupObject

Returns the value of attribute industry_group.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def industry_group
  @industry_group
end

#long_offeringObject

Returns the value of attribute long_offering.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def long_offering
  @long_offering
end

#min_investmentObject

Returns the value of attribute min_investment.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def min_investment
  @min_investment
end

#num_investorsObject

Returns the value of attribute num_investors.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def num_investors
  @num_investors
end

#offering_amountObject

Returns the value of attribute offering_amount.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def offering_amount
  @offering_amount
end

#offering_soldObject

Returns the value of attribute offering_sold.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def offering_sold
  @offering_sold
end

#processedObject

Returns the value of attribute processed.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def processed
  @processed
end

#sales_commissionObject

Returns the value of attribute sales_commission.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def sales_commission
  @sales_commission
end

#security_typeObject

Returns the value of attribute security_type.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def security_type
  @security_type
end

#use_of_proceedsObject

Returns the value of attribute use_of_proceeds.



6
7
8
# File 'lib/startupstats/formd/models/filing.rb', line 6

def use_of_proceeds
  @use_of_proceeds
end