Class: Cufinder::JobChange

Inherits:
Object
  • Object
show all
Defined in:
lib/cufinder_ruby/types.rb

Overview

JCA Job Change

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ JobChange

Returns a new instance of JobChange.



825
826
827
828
829
830
831
# File 'lib/cufinder_ruby/types.rb', line 825

def initialize(data = {})
  @type = data["type"]
  @linkedin_url = data["linkedin_url"]
  @detected_at = data["detected_at"]
  @from = data["from"] ? JobChangeCompanySnapshot.new(data["from"]) : nil
  @to = data["to"] ? JobChangeCompanySnapshot.new(data["to"]) : nil
end

Instance Attribute Details

#detected_atObject

Returns the value of attribute detected_at.



823
824
825
# File 'lib/cufinder_ruby/types.rb', line 823

def detected_at
  @detected_at
end

#fromObject

Returns the value of attribute from.



823
824
825
# File 'lib/cufinder_ruby/types.rb', line 823

def from
  @from
end

#linkedin_urlObject

Returns the value of attribute linkedin_url.



823
824
825
# File 'lib/cufinder_ruby/types.rb', line 823

def linkedin_url
  @linkedin_url
end

#toObject

Returns the value of attribute to.



823
824
825
# File 'lib/cufinder_ruby/types.rb', line 823

def to
  @to
end

#typeObject

Returns the value of attribute type.



823
824
825
# File 'lib/cufinder_ruby/types.rb', line 823

def type
  @type
end