Class: Saklient::Cloud::Resources::IfaceActivity

Inherits:
Activity
  • Object
show all
Defined in:
lib/saklient/cloud/resources/iface_activity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Activity

#_fetch, #set_source_id

Constructor Details

#initialize(client) ⇒ IfaceActivity

Returns a new instance of IfaceActivity.

Parameters:



56
57
58
59
# File 'lib/saklient/cloud/resources/iface_activity.rb', line 56

def initialize(client)
  super(client)
  Saklient::Util::validate_type(client, 'Saklient::Cloud::Client')
end

Instance Attribute Details

#samplesArray<IfaceActivitySample> (readonly)

サンプル列

Returns:



32
33
34
# File 'lib/saklient/cloud/resources/iface_activity.rb', line 32

def samples
  @samples
end

Instance Method Details

#fetch(startDate = nil, endDate = nil) ⇒ IfaceActivity

現在の最新のアクティビティ情報を取得し, samplesに格納します.

	 * @return this

Parameters:

  • startDate (NativeDate) (defaults to: nil)
  • endDate (NativeDate) (defaults to: nil)

Returns:



81
82
83
84
85
86
# File 'lib/saklient/cloud/resources/iface_activity.rb', line 81

def fetch(startDate = nil, endDate = nil)
  Saklient::Util::validate_type(startDate, 'NativeDate')
  Saklient::Util::validate_type(endDate, 'NativeDate')
  @_samples = []
  return _fetch(startDate, endDate)
end