class MotoRecall::RecallSet
Attributes
items[R]
original_response[R]
Public Class Methods
new(recalls, opts = {})
click to toggle source
# File lib/moto_recall/recall_set.rb, line 5 def initialize(recalls, opts = {}) @items = recalls @original_response = opts[:original_response] end
Public Instance Methods
method_missing(sym, *args, &block)
click to toggle source
Calls superclass method
# File lib/moto_recall/recall_set.rb, line 18 def method_missing(sym, *args, &block) @items.respond_to?(sym) ? @items.send(sym, *args, &block) : super end
respond_to?(sym, include_all = false)
click to toggle source
Calls superclass method
# File lib/moto_recall/recall_set.rb, line 14 def respond_to?(sym, include_all = false) @items.respond_to?(sym) || super end
to_json()
click to toggle source
# File lib/moto_recall/recall_set.rb, line 10 def to_json @items.map(&:to_h).to_json end