class Yaks::NullResource
Public Class Methods
new(opts = {})
click to toggle source
Calls superclass method
# File lib/yaks/null_resource.rb, line 6 def initialize(opts = {}) local_opts = {} local_opts[:rels] = opts[:rels] if opts.key?(:rels) local_opts[:collection] = opts[:collection] if opts.key?(:collection) super(local_opts) end
Public Instance Methods
add_form(_form)
click to toggle source
# File lib/yaks/null_resource.rb, line 42 def add_form(_form) raise UnsupportedOperationError, "Operation #{__method__} not supported on #{self.class}" end
add_link(_link)
click to toggle source
# File lib/yaks/null_resource.rb, line 38 def add_link(_link) raise UnsupportedOperationError, "Operation #{__method__} not supported on #{self.class}" end
add_subresource(_subresource)
click to toggle source
# File lib/yaks/null_resource.rb, line 46 def add_subresource(_subresource) raise UnsupportedOperationError, "Operation #{__method__} not supported on #{self.class}" end
collection?()
click to toggle source
# File lib/yaks/null_resource.rb, line 17 def collection? # rubocop:disable Style/TrivialAccessors @collection end
each()
click to toggle source
# File lib/yaks/null_resource.rb, line 13 def each to_enum end
map()
click to toggle source
# File lib/yaks/null_resource.rb, line 29 def map return [] if collection? raise UnsupportedOperationError, "Operation #{__method__} not supported on #{self.class}" end
merge_attributes(_new_attrs)
click to toggle source
# File lib/yaks/null_resource.rb, line 34 def merge_attributes(_new_attrs) raise UnsupportedOperationError, "Operation #{__method__} not supported on #{self.class}" end
null_resource?()
click to toggle source
# File lib/yaks/null_resource.rb, line 21 def null_resource? true end
seq()
click to toggle source
# File lib/yaks/null_resource.rb, line 25 def seq [] end