Sha256: bfffe20e3898a76f972c183786c104532670f345ee346f2ee723dfc399311a61

Contents?: true

Size: 801 Bytes

Versions: 12

Compression:

Stored size: 801 Bytes

Contents

@namespace("Gnomon")

protocol Location {

  record Timestamp {
    int timestamp;
  }

  /** This main class for this protocol */
  record Location {
    /** foo */
    int id;
    string type;
    string county_name;
    string state_name;
    string country_name;
    string city_name;
    string neighborhood_name;
    string postal_code_name;
    float latitude;
    float longitude;
    int population;
    array<Timestamp> foo;
    array<int> numbers;
    Timestamp updated_at;
  }

  record FetchOption {
    int page = 0;
    int per_page = 30;
  }

  /** Returns a list of Locations */
  array<Location> index(FetchOption options);

  /** Return a single Location */
  array<Location> show(int id);

  /** Try to guess a location from a given string */
  array<Location> resolve(string q);
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
service_contract-0.6.0 test/sample/1/source/location.avdl
service_contract-0.5.1 test/sample/1/source/location.avdl
service_contract-0.5.0 test/sample/1/source/location.avdl
service_contract-0.4.1 test/sample/1/source/location.avdl
service_contract-0.4.0 test/sample/1/source/location.avdl
service_contract-0.3.0 test/sample/1/source/location.avdl
service_contract-0.2.1 test/sample/1/source/location.avdl
service_contract-0.2.0 test/sample/1/source/location.avdl
service_contract-0.1.1 test/sample/1/source/location.avdl
service_contract-0.1.0 test/sample/1/source/location.avdl
service_contract-0.0.10 test/sample/1/source/location.avdl
service_contract-0.0.8 test/sample/1/source/location.avdl