class Veeqo::Base

Public Class Methods

method_missing(method_name, *arguments, &block) click to toggle source
Calls superclass method
# File lib/veeqo/base.rb, line 6
def self.method_missing(method_name, *arguments, &block)
  if new.respond_to?(method_name, include_private: false)
    new.send(method_name, *arguments, &block)
  else
    super
  end
end

Private Instance Methods

create_resource(attributes) click to toggle source
# File lib/veeqo/base.rb, line 16
def create_resource(attributes)
  Veeqo::Request.new(:post, end_point, attributes).parse
end
update_resource(resource_id, attributes) click to toggle source
# File lib/veeqo/base.rb, line 20
def update_resource(resource_id, attributes)
  Veeqo::Request.new(
    :put, [end_point, resource_id].join("/"), attributes
  ).parse
end