Class: PlexRubySDK::Models::Operations::GetTokenByPinIdGeoData

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

Overview

Geo location data

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(city: nil, code: nil, continent_code: nil, coordinates: nil, country: nil, european_union_member: nil, in_privacy_restricted_country: nil, in_privacy_restricted_region: nil, postal_code: nil, subdivisions: nil, time_zone: nil) ⇒ GetTokenByPinIdGeoData

Returns a new instance of GetTokenByPinIdGeoData.



44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/plex_ruby_sdk/models/operations/gettokenbypinid_geodata.rb', line 44

def initialize(city: nil, code: nil, continent_code: nil, coordinates: nil, country: nil, european_union_member: nil, in_privacy_restricted_country: nil, in_privacy_restricted_region: nil, postal_code: nil, subdivisions: nil, time_zone: nil)
  @city = city
  @code = code
  @continent_code = continent_code
  @coordinates = coordinates
  @country = country
  @european_union_member = european_union_member
  @in_privacy_restricted_country = in_privacy_restricted_country
  @in_privacy_restricted_region = in_privacy_restricted_region
  @postal_code = postal_code
  @subdivisions = subdivisions
  @time_zone = time_zone
end

Instance Method Details

#==(other) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/plex_ruby_sdk/models/operations/gettokenbypinid_geodata.rb', line 58

def ==(other)
  return false unless other.is_a? self.class
  return false unless @city == other.city
  return false unless @code == other.code
  return false unless @continent_code == other.continent_code
  return false unless @coordinates == other.coordinates
  return false unless @country == other.country
  return false unless @european_union_member == other.european_union_member
  return false unless @in_privacy_restricted_country == other.in_privacy_restricted_country
  return false unless @in_privacy_restricted_region == other.in_privacy_restricted_region
  return false unless @postal_code == other.postal_code
  return false unless @subdivisions == other.subdivisions
  return false unless @time_zone == other.time_zone
  true
end