Class: Inch::API::Get
Overview
Gets all objects matching the given object_names
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Attributes inherited from Filter
#codebase, #grade_lists, #objects
Instance Method Summary collapse
-
#initialize(codebase, object_names) ⇒ Get
constructor
A new instance of Get.
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
#object ⇒ Object (readonly)
Returns the value of attribute object.
5 6 7 |
# File 'lib/inch/api/get.rb', line 5 def object @object end |