Sha256: 4d01268e4e1d5fdfc6bb253bd60ea4a9f926e3a74e0d0b3f63e6f3a9f77ca598

Contents?: true

Size: 379 Bytes

Versions: 5

Compression:

Stored size: 379 Bytes

Contents

module Masheri
  class Service < RestClient::Base
    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

    alias :activity :developer_activity
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
masheri-0.4.0 lib/masheri/service.rb
masheri-0.3.10 lib/masheri/service.rb
masheri-0.3.8 lib/masheri/service.rb
masheri-0.3.7 lib/masheri/service.rb
masheri-0.3.6 lib/masheri/service.rb