Class: Cufinder::JobChange
- Inherits:
-
Object
- Object
- Cufinder::JobChange
- Defined in:
- lib/cufinder_ruby/types.rb
Overview
JCA Job Change
Instance Attribute Summary collapse
-
#detected_at ⇒ Object
Returns the value of attribute detected_at.
-
#from ⇒ Object
Returns the value of attribute from.
-
#linkedin_url ⇒ Object
Returns the value of attribute linkedin_url.
-
#to ⇒ Object
Returns the value of attribute to.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ JobChange
constructor
A new instance of JobChange.
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_at ⇒ Object
Returns the value of attribute detected_at.
823 824 825 |
# File 'lib/cufinder_ruby/types.rb', line 823 def detected_at @detected_at end |
#from ⇒ Object
Returns the value of attribute from.
823 824 825 |
# File 'lib/cufinder_ruby/types.rb', line 823 def from @from end |
#linkedin_url ⇒ Object
Returns the value of attribute linkedin_url.
823 824 825 |
# File 'lib/cufinder_ruby/types.rb', line 823 def linkedin_url @linkedin_url end |
#to ⇒ Object
Returns the value of attribute to.
823 824 825 |
# File 'lib/cufinder_ruby/types.rb', line 823 def to @to end |
#type ⇒ Object
Returns the value of attribute type.
823 824 825 |
# File 'lib/cufinder_ruby/types.rb', line 823 def type @type end |