Class: OpenApiSDK::Models::Operations::CheckDomainStatusResponseBody

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/open_api_sdk/models/operations/checkdomainstatus_responsebody.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(domain:, available:, premium: nil, prices: nil, price: nil) ⇒ CheckDomainStatusResponseBody

Returns a new instance of CheckDomainStatusResponseBody.



29
30
31
32
33
34
35
# File 'lib/open_api_sdk/models/operations/checkdomainstatus_responsebody.rb', line 29

def initialize(domain:, available:, premium: nil, prices: nil, price: nil)
  @domain = domain
  @available = available
  @premium = premium
  @prices = prices
  @price = price
end

Instance Method Details

#==(other) ⇒ Object



38
39
40
41
42
43
44
45
46
# File 'lib/open_api_sdk/models/operations/checkdomainstatus_responsebody.rb', line 38

def ==(other)
  return false unless other.is_a? self.class
  return false unless @domain == other.domain
  return false unless @available == other.available
  return false unless @premium == other.premium
  return false unless @prices == other.prices
  return false unless @price == other.price
  true
end