Class: StartupStats::Formd::Company
- Inherits:
-
Object
- Object
- StartupStats::Formd::Company
- Defined in:
- lib/startupstats/formd/models/company.rb
Instance Attribute Summary collapse
-
#address_city ⇒ Object
Returns the value of attribute address_city.
-
#address_spc ⇒ Object
Returns the value of attribute address_spc.
-
#address_street1 ⇒ Object
Returns the value of attribute address_street1.
-
#address_street2 ⇒ Object
Returns the value of attribute address_street2.
-
#address_zip ⇒ Object
Returns the value of attribute address_zip.
-
#entity_type ⇒ Object
Returns the value of attribute entity_type.
-
#id ⇒ Object
Returns the value of attribute id.
-
#inc_state ⇒ Object
Returns the value of attribute inc_state.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#sec_id ⇒ Object
Returns the value of attribute sec_id.
Instance Method Summary collapse
-
#initialize(response = {}) ⇒ Company
constructor
A new instance of Company.
Constructor Details
#initialize(response = {}) ⇒ Company
Returns a new instance of Company.
7 8 9 10 11 |
# File 'lib/startupstats/formd/models/company.rb', line 7 def initialize response = {} response.each do |k, v| instance_variable_set("@#{k}",v) unless v.nil? end end |
Instance Attribute Details
#address_city ⇒ Object
Returns the value of attribute address_city.
4 5 6 |
# File 'lib/startupstats/formd/models/company.rb', line 4 def address_city @address_city end |
#address_spc ⇒ Object
Returns the value of attribute address_spc.
4 5 6 |
# File 'lib/startupstats/formd/models/company.rb', line 4 def address_spc @address_spc end |
#address_street1 ⇒ Object
Returns the value of attribute address_street1.
4 5 6 |
# File 'lib/startupstats/formd/models/company.rb', line 4 def address_street1 @address_street1 end |
#address_street2 ⇒ Object
Returns the value of attribute address_street2.
4 5 6 |
# File 'lib/startupstats/formd/models/company.rb', line 4 def address_street2 @address_street2 end |
#address_zip ⇒ Object
Returns the value of attribute address_zip.
4 5 6 |
# File 'lib/startupstats/formd/models/company.rb', line 4 def address_zip @address_zip end |
#entity_type ⇒ Object
Returns the value of attribute entity_type.
4 5 6 |
# File 'lib/startupstats/formd/models/company.rb', line 4 def entity_type @entity_type end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/startupstats/formd/models/company.rb', line 4 def id @id end |
#inc_state ⇒ Object
Returns the value of attribute inc_state.
4 5 6 |
# File 'lib/startupstats/formd/models/company.rb', line 4 def inc_state @inc_state end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/startupstats/formd/models/company.rb', line 4 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
4 5 6 |
# File 'lib/startupstats/formd/models/company.rb', line 4 def phone @phone end |
#sec_id ⇒ Object
Returns the value of attribute sec_id.
4 5 6 |
# File 'lib/startupstats/formd/models/company.rb', line 4 def sec_id @sec_id end |