mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
25 lines
365 B
Ruby
25 lines
365 B
Ruby
![]() |
require 'fog/core/model'
|
||
|
|
||
|
module Fog
|
||
|
module Metering
|
||
|
class OpenStack
|
||
|
|
||
|
class Resource < Fog::Model
|
||
|
|
||
|
identity :resource_id
|
||
|
|
||
|
attribute :project_id
|
||
|
attribute :user_id
|
||
|
attribute :metadata
|
||
|
|
||
|
def initialize(attributes)
|
||
|
prepare_service_value(attributes)
|
||
|
super
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
|