class Crunchbase::Model::SimpleOrganization

Attributes

created_at[R]
name[R]
path[R]
type[R]
updated_at[R]

Public Class Methods

new(json) click to toggle source
# File lib/crunchbase/model/simple_organization.rb, line 7
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])) unless json[v].nil?
  end
end

Public Instance Methods

property_keys() click to toggle source
# File lib/crunchbase/model/simple_organization.rb, line 17
def property_keys
  %w(
    type name path created_at updated_at
  )
end