Class: DingSDK::Models::Shared::LookupResponse
- Inherits:
-
Object
- Object
- DingSDK::Models::Shared::LookupResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/ding_sdk/models/shared/lookupresponse.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(caller_name: nil, carrier: nil, country_code: nil, line_type: nil, mcc: nil, mnc: nil, number_ported: nil, phone_number: nil, temporary_phone_number: nil) ⇒ LookupResponse
constructor
A new instance of LookupResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(caller_name: nil, carrier: nil, country_code: nil, line_type: nil, mcc: nil, mnc: nil, number_ported: nil, phone_number: nil, temporary_phone_number: nil) ⇒ LookupResponse
Returns a new instance of LookupResponse.
57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/ding_sdk/models/shared/lookupresponse.rb', line 57 def initialize(caller_name: nil, carrier: nil, country_code: nil, line_type: nil, mcc: nil, mnc: nil, number_ported: nil, phone_number: nil, temporary_phone_number: nil) @caller_name = caller_name @carrier = carrier @country_code = country_code @line_type = line_type @mcc = mcc @mnc = mnc @number_ported = number_ported @phone_number = phone_number @temporary_phone_number = temporary_phone_number end |
Instance Method Details
#==(other) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/ding_sdk/models/shared/lookupresponse.rb', line 69 def ==(other) return false unless other.is_a? self.class return false unless @caller_name == other.caller_name return false unless @carrier == other.carrier return false unless @country_code == other.country_code return false unless @line_type == other.line_type return false unless @mcc == other.mcc return false unless @mnc == other.mnc return false unless @number_ported == other.number_ported return false unless @phone_number == other.phone_number return false unless @temporary_phone_number == other.temporary_phone_number true end |