Class: Fictium::Example
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#default ⇒ Object
Returns the value of attribute default.
-
#description ⇒ Object
Returns the value of attribute description.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#request ⇒ Object
Returns the value of attribute request.
-
#response ⇒ Object
Returns the value of attribute response.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
- #default? ⇒ Boolean
-
#initialize(action) ⇒ Example
constructor
A new instance of Example.
Methods inherited from Model
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
#action ⇒ Object (readonly)
Returns the value of attribute action.
3 4 5 |
# File 'lib/fictium/poros/example.rb', line 3 def action @action end |
#default ⇒ Object
Returns the value of attribute default.
4 5 6 |
# File 'lib/fictium/poros/example.rb', line 4 def default @default end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/fictium/poros/example.rb', line 4 def description @description end |
#headers ⇒ Object
Returns the value of attribute headers.
4 5 6 |
# File 'lib/fictium/poros/example.rb', line 4 def headers @headers end |
#request ⇒ Object
Returns the value of attribute request.
4 5 6 |
# File 'lib/fictium/poros/example.rb', line 4 def request @request end |
#response ⇒ Object
Returns the value of attribute response.
4 5 6 |
# File 'lib/fictium/poros/example.rb', line 4 def response @response end |
#summary ⇒ Object
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
11 12 13 |
# File 'lib/fictium/poros/example.rb', line 11 def default? default end |