Class: Google::Apis::CivicinfoV2::PointProto

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/civicinfo_v2/classes.rb,
generated/google/apis/civicinfo_v2/representations.rb,
generated/google/apis/civicinfo_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PointProto

Returns a new instance of PointProto



1143
1144
1145
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1143

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#lat_e7Fixnum

Corresponds to the JSON property latE7

Returns:

  • (Fixnum)


1126
1127
1128
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1126

def lat_e7
  @lat_e7
end

#lng_e7Fixnum

Corresponds to the JSON property lngE7

Returns:

  • (Fixnum)


1131
1132
1133
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1131

def lng_e7
  @lng_e7
end

#metadataGoogle::Apis::CivicinfoV2::FieldMetadataProto

Corresponds to the JSON property metadata



1136
1137
1138
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1136

def 
  @metadata
end

#temporary_dataGoogle::Apis::CivicinfoV2::MessageSet

Corresponds to the JSON property temporaryData



1141
1142
1143
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1141

def temporary_data
  @temporary_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1148
1149
1150
1151
1152
1153
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1148

def update!(**args)
  @lat_e7 = args[:lat_e7] if args.key?(:lat_e7)
  @lng_e7 = args[:lng_e7] if args.key?(:lng_e7)
  @metadata = args[:metadata] if args.key?(:metadata)
  @temporary_data = args[:temporary_data] if args.key?(:temporary_data)
end