class Tinybucket::Api::Parser
Attributes
options[R]
type[R]
Public Class Methods
new(type, model_class)
click to toggle source
# File lib/tinybucket/api/base_api.rb, line 8 def initialize(type, model_class) parser_class = case type when :collection then Tinybucket::Parser::CollectionParser when :object then Tinybucket::Parser::ObjectParser else throw "Unknown parser type: #{type}" end @type = parser_class @options = { model_class: model_class } end