Class: Rdm::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rdm/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#default_pathObject

Returns the value of attribute default_path.



2
3
4
# File 'lib/rdm/config.rb', line 2

def default_path
  @default_path
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/rdm/config.rb', line 2

def name
  @name
end

#role_pathObject

Returns the value of attribute role_path.



2
3
4
# File 'lib/rdm/config.rb', line 2

def role_path
  @role_path
end

Class Method Details

.build(name:, default_path:, role_path:) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/rdm/config.rb', line 4

def self.build(name:, default_path:, role_path:)
  new.tap do |i|
    i.name         = name
    i.default_path = default_path
    i.role_path    = role_path
  end
end