class Crunchbase::Model::FundRaise
Constants
- RESOURCE_LIST
Attributes
created_at[R]
name[R]
path[R]
updated_at[R]
Public Class Methods
new(json)
click to toggle source
# File lib/crunchbase/model/fund_raise.rb, line 11 def initialize(json) property_keys.each do |v| instance_variable_set("@#{v}", json[v] || nil) end %w(created_at updated_at).each do |v| instance_variable_set("@#{v}", Time.at(json[v])) end end
Public Instance Methods
property_keys()
click to toggle source
# File lib/crunchbase/model/fund_raise.rb, line 21 def property_keys %w(name path created_at updated_at) end