Class: PostyClient::Resources::Summary

Inherits:
Base
  • Object
show all
Defined in:
lib/posty_client/resources/summary.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #errors, #name, #new_resource

Class Method Summary collapse

Methods inherited from Base

#create, #delete, #load, #new_resource?, #request_with_error_handling, #resource_name, #resource_slug, #save, #slug, #update

Class Method Details

.getObject



4
5
6
7
8
# File 'lib/posty_client/resources/summary.rb', line 4

def self.get
  response = RestClient.get([base_uri, resource_name].join('/'))

  data = JSON.parse(response)
end

.resource_nameObject



10
11
12
# File 'lib/posty_client/resources/summary.rb', line 10

def self.resource_name
  :summary
end