diff --git a/lib/sf/room.rb b/lib/sf/room.rb new file mode 100644 index 0000000..1fb6950 --- /dev/null +++ b/lib/sf/room.rb @@ -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 + diff --git a/lib/sf/venue.rb b/lib/sf/venue.rb new file mode 100644 index 0000000..0f35738 --- /dev/null +++ b/lib/sf/venue.rb @@ -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 + + diff --git a/lib/sf/version.rb b/lib/sf/version.rb index ac225d0..ae83c99 100644 --- a/lib/sf/version.rb +++ b/lib/sf/version.rb @@ -1,3 +1,3 @@ module Sf - VERSION = "0.1.12" + VERSION = "0.1.13" end