lib/dox/entities/resource.rb in dox-1.3.0 vs lib/dox/entities/resource.rb in dox-2.0.0.beta1
- old
+ new
@@ -1,17 +1,16 @@
module Dox
module Entities
class Resource
-
- attr_reader :name, :desc, :endpoint
+ attr_reader :name, :desc, :endpoint, :group
attr_accessor :actions
- def initialize(name, details)
- @name = name
+ def initialize(details)
+ @name = details[:resource_name]
+ @group = details[:resource_group_name]
@desc = details[:resource_desc]
@endpoint = details[:resource_endpoint]
@actions = {}
end
-
end
end
end