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.



1775
1776
1777
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1775

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

Instance Attribute Details

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

Corresponds to the JSON property segments



1773
1774
1775
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1773

def segments
  @segments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1780
1781
1782
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1780

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