module Masheri class Service include QueryInstanceMethods extend QueryClassMethods attr_accessor :service_key, :name, :limits, :created, :updated, :object_type def self.object_type "services" end def developer_activity(options = {}) Masheri.rest.developer_activity(service_key, start_date: 1.day.ago, end_date: 0.days.ago) end def self.show_list find_each do |entry| printf "Service Name: %-50s Service Key: %s\n", entry.name.inspect, entry.service_key end end end end