Class: GrapeSwagger::Representable::Parser
- Inherits:
-
Object
- Object
- GrapeSwagger::Representable::Parser
- Defined in:
- lib/grape-swagger/representable/parser.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(model, endpoint) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(model, endpoint) ⇒ Parser
Returns a new instance of Parser.
9 10 11 12 |
# File 'lib/grape-swagger/representable/parser.rb', line 9 def initialize(model, endpoint) @model = model @endpoint = endpoint end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
7 8 9 |
# File 'lib/grape-swagger/representable/parser.rb', line 7 def endpoint @endpoint end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
6 7 8 |
# File 'lib/grape-swagger/representable/parser.rb', line 6 def model @model end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/grape-swagger/representable/parser.rb', line 14 def call parse_representer(model) end |