Class: Mashery::Service

Inherits:
RpcClient::Base show all
Defined in:
lib/mashery/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RpcClient::Base

all, count, find_each, first, #initialize, items, page, select, where

Constructor Details

This class inherits a constructor from Mashery::RpcClient::Base

Instance Attribute Details

#createdObject

Returns the value of attribute created.



3
4
5
# File 'lib/mashery/service.rb', line 3

def created
  @created
end

#limitsObject

Returns the value of attribute limits.



3
4
5
# File 'lib/mashery/service.rb', line 3

def limits
  @limits
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/mashery/service.rb', line 3

def name
  @name
end

#object_typeObject

Returns the value of attribute object_type.



3
4
5
# File 'lib/mashery/service.rb', line 3

def object_type
  @object_type
end

#service_keyObject

Returns the value of attribute service_key.



3
4
5
# File 'lib/mashery/service.rb', line 3

def service_key
  @service_key
end

#updatedObject

Returns the value of attribute updated.



3
4
5
# File 'lib/mashery/service.rb', line 3

def updated
  @updated
end

Instance Method Details

#activity(options = {}) ⇒ Object



5
6
7
# File 'lib/mashery/service.rb', line 5

def activity(options = {})
  Mashery.rest.activity("developer_activity", service_key, start_date: 1.day.ago, end_date: 0.days.ago)
end