Class: ExposeDB::Model
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- ExposeDB::Model
- Includes:
- HTTParty
- Defined in:
- lib/expose_db/model.rb
Class Method Summary collapse
Methods included from Querying
all, filter, find, find_by_id
Methods included from Relations
belongs_to, constantize_class_from_name, has_many, resolve_relation_class, resolved_relation_classes
Class Method Details
.exposed_as(new_exposed_as = nil) ⇒ Object
14 15 16 17 |
# File 'lib/expose_db/model.rb', line 14 def self.exposed_as(new_exposed_as = nil) return @exposed_as unless new_exposed_as @exposed_as = new_exposed_as.to_s end |