Class: Fog::Metering::HuaweiCloud::Events
Instance Attribute Summary
#response
Instance Method Summary
collapse
#destroy, #get, #load_response, #summary
Instance Method Details
#all(q = []) ⇒ Object
10
11
12
|
# File 'lib/fog/metering/huaweicloud/models/events.rb', line 10
def all(q = [])
load_response(service.list_events(q))
end
|
#find_by_id(message_id) ⇒ Object
14
15
16
17
18
19
|
# File 'lib/fog/metering/huaweicloud/models/events.rb', line 14
def find_by_id(message_id)
event = service.get_event(message_id).body
new(event)
rescue Fog::Metering::HuaweiCloud::NotFound
nil
end
|