Module: Ecfr::DefaultStatusSetup

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/ecfr/default_status_setup.rb', line 33

def self.included(base)
  base.instance_eval do
    attribute :checks
    attribute :status
  end

  base.extend(ClassMethods)
end

Instance Method Details

#status_codeObject



42
43
44
# File 'lib/ecfr/default_status_setup.rb', line 42

def status_code
  response_status
end