Class: Inch::API::Get

Inherits:
Filter
  • Object
show all
Defined in:
lib/inch/api/get.rb

Overview

Gets all objects matching the given object_names

Instance Attribute Summary collapse

Attributes inherited from Filter

#codebase, #grade_lists, #objects

Instance Method Summary collapse

Constructor Details

#initialize(codebase, object_names) ⇒ Get

Returns a new instance of Get.



7
8
9
10
11
# File 'lib/inch/api/get.rb', line 7

def initialize(codebase, object_names)
  super(codebase, {})
  @objects = find_objects_with_names(object_names)
  @object = objects.first
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



5
6
7
# File 'lib/inch/api/get.rb', line 5

def object
  @object
end