class Gapic::PathPattern::CollectionIdSegment
A CollectionId segment in a path template.
CollectionId segments are basically string literals
@!attribure [r] type
@return [String] The type of this segment
@!attribute [r] pattern
@return [String] The pattern of the segment, for the positional segment it is also a pattern of its resource
Attributes
pattern[R]
type[R]
Public Class Methods
new(pattern)
click to toggle source
# File lib/gapic/path_pattern/segment.rb, line 228 def initialize pattern @type = :collection_id @pattern = pattern end
Public Instance Methods
==(other)
click to toggle source
@private
# File lib/gapic/path_pattern/segment.rb, line 276 def == other return false unless other.is_a? self.class (pattern == other.pattern) end
nontrivial_resource_pattern?()
click to toggle source
Whether the segment provides a nontrivial resource pattern @return [Boolean]
# File lib/gapic/path_pattern/segment.rb, line 250 def nontrivial_resource_pattern? false end
path_string()
click to toggle source
Path string for this segment @return [String]
# File lib/gapic/path_pattern/segment.rb, line 264 def path_string pattern end
pattern_template()
click to toggle source
A pattern template for this segment @return [String]
# File lib/gapic/path_pattern/segment.rb, line 271 def pattern_template pattern end
positional?()
click to toggle source
Whether the segment is positional @return [Boolean]
# File lib/gapic/path_pattern/segment.rb, line 236 def positional? false end
provides_arguments?()
click to toggle source
Whether the segment provides arguments @return [Boolean]
# File lib/gapic/path_pattern/segment.rb, line 257 def provides_arguments? false end
resource_pattern?()
click to toggle source
Whether the segment provides a resource pattern @return [Boolean]
# File lib/gapic/path_pattern/segment.rb, line 243 def resource_pattern? false end