Class: Rapa::Creator

Inherits:
Object
  • Object
show all
Defined in:
lib/rapa/creator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ Creator

Returns a new instance of Creator.

Parameters:

  • source (Hash)


7
8
9
# File 'lib/rapa/creator.rb', line 7

def initialize(source)
  @source = source
end

Instance Attribute Details

#sourceHash (readonly)

Returns:

  • (Hash)


4
5
6
# File 'lib/rapa/creator.rb', line 4

def source
  @source
end

Instance Method Details

#nameString

Returns:

  • (String)


12
13
14
# File 'lib/rapa/creator.rb', line 12

def name
  source["__content__"]
end

#roleString

Returns:

  • (String)


17
18
19
# File 'lib/rapa/creator.rb', line 17

def role
  source["Role"]
end