Class: Adocsite::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/adocsite/engine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = 'home', name = 'index') ⇒ Request

Returns a new instance of Request.



4
5
6
7
# File 'lib/adocsite/engine.rb', line 4

def initialize(type = 'home', name = 'index')
  @type = type
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/adocsite/engine.rb', line 3

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/adocsite/engine.rb', line 3

def type
  @type
end