Sha256: 10292c35820020929c52ce02a0c0462e07e1b5777a32d7eafe139f8ead29678d

Contents?: true

Size: 537 Bytes

Versions: 14

Compression:

Stored size: 537 Bytes

Contents

require 'haveapi/go_client/parameters/base'

module HaveAPI::GoClient
  class Parameters::Resource < Parameters::Base
    handle do |_role, _direction, _name, desc|
      desc[:type] == 'Resource'
    end

    # Pointer to the associated resource
    # @return [Parameters::Association]
    attr_reader :association

    def nillable?
      true
    end

    protected

    def do_resolve
      @association = Parameters::Association.new(self, desc)
      @go_in_type = 'int64'
      @go_out_type = association.go_type
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
haveapi-go-client-0.25.0 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.24.0 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.23.7 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.23.6 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.23.5 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.23.4 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.23.3 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.23.2 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.23.1 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.23.0 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.22.1 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.22.0 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.21.1 lib/haveapi/go_client/parameters/resource.rb
haveapi-go-client-0.21.0 lib/haveapi/go_client/parameters/resource.rb