Class: Tumbling::Resource
- Inherits:
-
Object
- Object
- Tumbling::Resource
show all
- Includes:
- HTTParty
- Defined in:
- lib/tumbling/resource.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.all(query = {}) ⇒ Object
6
7
8
|
# File 'lib/tumbling/resource.rb', line 6
def self.all(query = {})
get_resources(type, query)
end
|
.build(attrs) ⇒ Object
14
15
16
|
# File 'lib/tumbling/resource.rb', line 14
def self.build(attrs)
new from_api_attributes(attrs)
end
|
Instance Method Details
#type ⇒ Object
10
11
12
|
# File 'lib/tumbling/resource.rb', line 10
def type
self.class.type
end
|