class Controls::Guidance::Reference
A object that represents the reference resource of a {Controls::Guidance}
Public Instance Methods
to_s()
click to toggle source
Represents the guidance collection in a human friendly way
@return [String] a string representing a guidance collection
# File lib/controls/objects/guidance/reference.rb, line 10 def to_s url ? "#{title}: (#{url})" : title end
Private Instance Methods
_allowed_keys()
click to toggle source
Ensures that calling url wouldn't raise a KeyError when {nil}
@return [Array] the keys that are allowed to be {nil}
# File lib/controls/objects/guidance/reference.rb, line 19 def _allowed_keys %w[url] end