Class: StackOne::Models::Shared::JobPostingCompensation

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/jobpostingcompensation.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(currency: nil, max_value_range: nil, min_value_range: nil, pay_frequency: nil, pay_period: nil, title: nil, type: nil, value: nil) ⇒ JobPostingCompensation

Returns a new instance of JobPostingCompensation.



33
34
35
36
37
38
39
40
41
42
# File 'lib/stack_one/models/shared/jobpostingcompensation.rb', line 33

def initialize(currency: nil, max_value_range: nil, min_value_range: nil, pay_frequency: nil, pay_period: nil, title: nil, type: nil, value: nil)
  @currency = currency
  @max_value_range = max_value_range
  @min_value_range = min_value_range
  @pay_frequency = pay_frequency
  @pay_period = pay_period
  @title = title
  @type = type
  @value = value
end

Instance Method Details

#==(other) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/stack_one/models/shared/jobpostingcompensation.rb', line 45

def ==(other)
  return false unless other.is_a? self.class
  return false unless @currency == other.currency
  return false unless @max_value_range == other.max_value_range
  return false unless @min_value_range == other.min_value_range
  return false unless @pay_frequency == other.pay_frequency
  return false unless @pay_period == other.pay_period
  return false unless @title == other.title
  return false unless @type == other.type
  return false unless @value == other.value
  true
end