Class: Cylons::RemoteSchema
- Inherits:
-
Object
- Object
- Cylons::RemoteSchema
- Defined in:
- lib/cylons/remote_schema.rb
Instance Attribute Summary collapse
-
#remote_associations ⇒ Object
Returns the value of attribute remote_associations.
-
#remote_attributes ⇒ Object
Returns the value of attribute remote_attributes.
-
#remote_klass ⇒ Object
Returns the value of attribute remote_klass.
-
#remote_search_scopes ⇒ Object
Returns the value of attribute remote_search_scopes.
Instance Method Summary collapse
-
#initialize(klass) ⇒ RemoteSchema
constructor
A new instance of RemoteSchema.
Constructor Details
#initialize(klass) ⇒ RemoteSchema
Returns a new instance of RemoteSchema.
5 6 7 8 9 10 |
# File 'lib/cylons/remote_schema.rb', line 5 def initialize(klass) @remote_attributes ||= klass.attribute_names @remote_associations ||= klass.remote_associations @remote_search_scopes ||= [] @remote_klass ||= klass.name.downcase.to_sym end |
Instance Attribute Details
#remote_associations ⇒ Object
Returns the value of attribute remote_associations.
3 4 5 |
# File 'lib/cylons/remote_schema.rb', line 3 def remote_associations @remote_associations end |
#remote_attributes ⇒ Object
Returns the value of attribute remote_attributes.
3 4 5 |
# File 'lib/cylons/remote_schema.rb', line 3 def remote_attributes @remote_attributes end |
#remote_klass ⇒ Object
Returns the value of attribute remote_klass.
3 4 5 |
# File 'lib/cylons/remote_schema.rb', line 3 def remote_klass @remote_klass end |
#remote_search_scopes ⇒ Object
Returns the value of attribute remote_search_scopes.
3 4 5 |
# File 'lib/cylons/remote_schema.rb', line 3 def remote_search_scopes @remote_search_scopes end |