Class: GrapeSwagger::Representable::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/grape-swagger/representable/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#endpointObject (readonly)

Returns the value of attribute endpoint.



7
8
9
# File 'lib/grape-swagger/representable/parser.rb', line 7

def endpoint
  @endpoint
end

#modelObject (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

#callObject



14
15
16
# File 'lib/grape-swagger/representable/parser.rb', line 14

def call
  parse_representer(model)
end