Class: Fictium::Example

Inherits:
Model
  • Object
show all
Defined in:
lib/fictium/poros/example.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#postman

Constructor Details

#initialize(action) ⇒ Example

Returns a new instance of Example.



6
7
8
9
# File 'lib/fictium/poros/example.rb', line 6

def initialize(action)
  @action = action
  @headers = ActiveSupport::HashWithIndifferentAccess.new
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



3
4
5
# File 'lib/fictium/poros/example.rb', line 3

def action
  @action
end

#defaultObject

Returns the value of attribute default.



4
5
6
# File 'lib/fictium/poros/example.rb', line 4

def default
  @default
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/fictium/poros/example.rb', line 4

def description
  @description
end

#headersObject

Returns the value of attribute headers.



4
5
6
# File 'lib/fictium/poros/example.rb', line 4

def headers
  @headers
end

#requestObject

Returns the value of attribute request.



4
5
6
# File 'lib/fictium/poros/example.rb', line 4

def request
  @request
end

#responseObject

Returns the value of attribute response.



4
5
6
# File 'lib/fictium/poros/example.rb', line 4

def response
  @response
end

#summaryObject

Returns the value of attribute summary.



4
5
6
# File 'lib/fictium/poros/example.rb', line 4

def summary
  @summary
end

Instance Method Details

#default?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/fictium/poros/example.rb', line 11

def default?
  default
end