Skip to content

Commit

Permalink
added room and venue
Browse files Browse the repository at this point in the history
  • Loading branch information
ij committed Sep 8, 2014
1 parent 5796184 commit 76d0199
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
17 changes: 17 additions & 0 deletions lib/sf/room.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class Sf::Room
include Sf::Base
attr_reader :sobject

def initialize(sobject=nil)
@sobject = sobject.nil? ? Restforce::SObject.new(sobject_type: 'Room__c') : sobject
end

def method_missing(method_name, *args, &block)
@sobject.send(method_name, *args, &block)
end

def respond_to_missing?(method_name, include_private = false)
@sobject.respond_to?(method_name, include_private) || super
end
end

18 changes: 18 additions & 0 deletions lib/sf/venue.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class Sf::Venue
include Sf::Base
attr_reader :sobject

def initialize(sobject=nil)
@sobject = sobject.nil? ? Restforce::SObject.new(sobject_type: 'Venue__c') : sobject
end

def method_missing(method_name, *args, &block)
@sobject.send(method_name, *args, &block)
end

def respond_to_missing?(method_name, include_private = false)
@sobject.respond_to?(method_name, include_private) || super
end
end


2 changes: 1 addition & 1 deletion lib/sf/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Sf
VERSION = "0.1.12"
VERSION = "0.1.13"
end

0 comments on commit 76d0199

Please sign in to comment.