Module: Recurly::Schema::SchemaFactory

Included in:
Request, Resource
Defined in:
lib/recurly/schema/schema_factory.rb

Overview

A mixin that allows a class to be treated like a recurly object. This gives the class the power to describe it's schema. It adds the define_attribute method and a schema reader.

Instance Method Summary collapse

Instance Method Details

#schemaSchema

Gets the schema for this class

Returns:



11
12
13
# File 'lib/recurly/schema/schema_factory.rb', line 11

def schema
  @schema ||= ::Recurly::Schema.new
end