Sha256: 4e73fe13232cab4cf96fe07d3a2d04dc2392eea0c699d080989c6e826f9c31b5

Contents?: true

Size: 1.24 KB

Versions: 12

Compression:

Stored size: 1.24 KB

Contents

module MontageRails
  class StudioResource
    def self.schema_definition
      {
        name: "studios",
        fields: [
          {
            name: "name",
            datatype: "text",
            indexed: false,
            required: true
          }
        ],
        links: {
          self: "http://testco.dev.montagehot.club/api/v1/schemas/studios/",
          query: "http://testco.dev.montagehot.club/api/v1/schemas/studios/query/",
          create_document: "http://testco.dev.montagehot.club/api/v1/schemas/studios/save/"
        }
      }
    end

    def self.to_hash
      {
        name: "Universal"
      }
    end

    def self.save_response
      {
        data: [
          {
            id: "19442e09-5c2d-4e5d-8f34-675570e81414",
            _meta: {
              modified: "2015-04-20T18:39:51.394Z",
              created: "2015-04-20T18:39:51.394Z"
            },
            name: "Universal"
          }
        ]
      }
    end

    def self.get_studio_response
      {
        data: {
          id: "19442e09-5c2d-4e5d-8f34-675570e81414",
          _meta: {
            modified: "2015-04-20T18:39:51.394Z",
            created: "2015-04-20T18:39:51.394Z"
          },
          name: "Universal"
        }
      }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
montage_rails-0.5.0 test/resources/studio_resource.rb
montage_rails-0.4.11 test/resources/studio_resource.rb
montage_rails-0.4.10 test/resources/studio_resource.rb
montage_rails-0.4.9 test/resources/studio_resource.rb
montage_rails-0.4.8 test/resources/studio_resource.rb
montage_rails-0.4.7 test/resources/studio_resource.rb
montage_rails-0.4.6 test/resources/studio_resource.rb
montage_rails-0.4.5 test/resources/studio_resource.rb
montage_rails-0.4.4 test/resources/studio_resource.rb
montage_rails-0.4.3 test/resources/studio_resource.rb
montage_rails-0.4.2 test/resources/studio_resource.rb
montage_rails-0.4.1 test/resources/studio_resource.rb