All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.getperka.flatpack.fast.rb.stg Maven / Gradle / Ivy

There is a newer version: 2.21.0
Show newest version
/*
 * #%L
 * FlatPack Automatic Source Tool
 * %%
 * Copyright (C) 2012 Perka Inc.
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
module(requires) ::= <<
# Generated File - DO NOT EDIT

"}; wrap, separator="\n">
>>

version() ::= <<
# Generated File - DO NOT EDIT

module 
  VERSION = ""
end
>>

entity(entity) ::= <<
# Generated File - DO NOT EDIT


require ''


module 
  module  

    
    class  \< 
    
      
      PROPERTY_NAMES = [
        
      ]
      attr_accessor *PROPERTY_NAMES
      
      
      
      EMBEDDED_PROPERTY_NAMES = [
        }; wrap, separator=",\n">
      ]
      attr_accessor *EMBEDDED_PROPERTY_NAMES
      
      
      
      '}; wrap, separator="\n">
      TYPE_MAP = {
         => }; wrap, separator=",\n">
      }
      
      
    end
  end
end
>>

field(property) ::= <%
<\n><\n>
:
%>

/**
 * Emit a doc string, reflowed to fit the current context.
 */
docString(docString) ::= <<
# 
>>

/**
 * Generate an API accessor stub.
 */
api(api) ::= <<
# Generated File - DO NOT EDIT
require 'flatpack_client'

module 
  class ClientApi \< Flatpack::Client::BaseApi
    include Flatpack::Core::MapInitialize
  
    
    private
    
    
  end
end
>>

/**
 * Select the kind of endpoint, either one that's documented to return a FlatPackEntity
 * or just return a HttpURLConnection for anything else.
 */
endpoint(end) ::= <<

def 
  
  to_return = .new(self, }; separator=", ">)
  
  to_return = Flatpack::Client::FlatpackRequestRequest.new(self, "", "", }; separator=", ">)
  
  to_return.entity = entity
  to_return
end

>>

endpointPrivate(end) ::= <<

class  \< Flatpack::Client::FlatpackRequestRequest
    
  def initialize(api, *args)
    super(api, "", "", *args)
  end
      
  
end
    

>>

endpointArgList() ::= <%

  (entity, }; separator=", ">)

  (entity)

  (}; separator=", ">)

%>

/**
 * The names of the path parameter arguments.
 */
endpointPathParameters() ::= <%
}; separator=", ">
%>

endpointQueryParameterStub(param) ::= <<

def with_()
  query_parameter('', );
end

>>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy