Class: Dox::Entities::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/dox/entities/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details) ⇒ Resource

Returns a new instance of Resource.



7
8
9
10
11
12
# File 'lib/dox/entities/resource.rb', line 7

def initialize(details)
  @name = details[:resource_name]
  @group = details[:resource_group_name]
  @desc = details[:resource_desc]
  @actions = {}
end

Instance Attribute Details

#actionsObject

Returns the value of attribute actions.



5
6
7
# File 'lib/dox/entities/resource.rb', line 5

def actions
  @actions
end

#descObject (readonly)

Returns the value of attribute desc.



4
5
6
# File 'lib/dox/entities/resource.rb', line 4

def desc
  @desc
end

#groupObject (readonly)

Returns the value of attribute group.



4
5
6
# File 'lib/dox/entities/resource.rb', line 4

def group
  @group
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/dox/entities/resource.rb', line 4

def name
  @name
end