Class: Google::Apis::CivicinfoV2::StreetSegmentList

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) ⇒ StreetSegmentList

Returns a new instance of StreetSegmentList



1913
1914
1915
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1913

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

Instance Attribute Details

#segmentsArray<Google::Apis::CivicinfoV2::StreetSegment>

Corresponds to the JSON property segments



1911
1912
1913
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1911

def segments
  @segments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1918
1919
1920
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1918

def update!(**args)
  @segments = args[:segments] if args.key?(:segments)
end