Class: Atoms::Endpoint
- Inherits:
-
Object
- Object
- Atoms::Endpoint
- Defined in:
- lib/atoms.rb
Class Attribute Summary collapse
-
.block ⇒ Object
Returns the value of attribute block.
-
.header ⇒ Object
Returns the value of attribute header.
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.block ⇒ Object
Returns the value of attribute block.
108 109 110 |
# File 'lib/atoms.rb', line 108 def block @block end |
.header ⇒ Object
Returns the value of attribute header.
108 109 110 |
# File 'lib/atoms.rb', line 108 def header @header end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
95 96 97 |
# File 'lib/atoms.rb', line 95 def params @params end |
Class Method Details
.call(prms) ⇒ Object
119 120 121 |
# File 'lib/atoms.rb', line 119 def call(prms) new.call(prms) end |
Instance Method Details
#call(prms) ⇒ Object
101 102 103 104 |
# File 'lib/atoms.rb', line 101 def call(prms) @params = prms response = instance_eval &self.class.block end |