# File lib/spark_api/primary_array.rb, line 25 def primary? @attributes.key?("Primary") && self.Primary == true end
module SparkApi::Primary
Primary: interface to implement for elements that are added to a “PrimaryArray” collection¶ ↑
Public Instance Methods
primary?()
click to toggle source
Return true if the element is the primary resource in a collection. Default implementation looks for a “Primary” attribute