Sha256: 9026a8c91608db227fa6b3daf86554b6cff7b6eff5df9cd16674e2a1dfbfe3c9

Contents?: true

Size: 363 Bytes

Versions: 3

Compression:

Stored size: 363 Bytes

Contents

module OData
  class Singleton
    attr_reader :name
    attr_reader :type_name

    def initialize(options = {})
      @name      = options[:name]
      @type_name = options[:type]
      @service   = options[:service]
    end

    def collection?
      false
    end

    def type
      @service.get_type_by_name(type_name)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
microsoft_graph-0.1.3 lib/odata/singleton.rb
microsoft_graph-0.1.1 lib/odata/singleton.rb
microsoft_graph-0.1.0 lib/odata/singleton.rb