Class: RestfulSpec::Specification

Inherits:
Object
  • Object
show all
Extended by:
ActiveSupport::Autoload
Defined in:
lib/restful_spec/specification.rb

Defined Under Namespace

Classes: Action, SmartSelect

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#controllerObject (readonly)

Returns the value of attribute controller.



6
7
8
# File 'lib/restful_spec/specification.rb', line 6

def controller
  @controller
end

#resourceObject

Returns the value of attribute resource.



6
7
8
# File 'lib/restful_spec/specification.rb', line 6

def resource
  @resource
end

Instance Method Details

#parse(&block) ⇒ Object



13
14
15
# File 'lib/restful_spec/specification.rb', line 13

def parse(&block)
  instance_eval(&block) if block_given?
end