lib/spark_api/models/base.rb in spark_api-1.4.9 vs lib/spark_api/models/base.rb in spark_api-1.4.10
- old
+ new
@@ -7,9 +7,14 @@
extend Paginate
include Dirty
attr_accessor :attributes, :errors, :parent
+ # More familiar accessor for our Spark API Id method
+ def id
+ self.Id
+ end
+
# Name of the resource as related to the path name
def self.element_name
# TODO I'd love to pull in active model at this point to provide default naming
@element_name ||= "resource"
end