Class: LocalVault::GroupCatalog::Match

Inherits:
Data
  • Object
show all
Defined in:
lib/localvault/group_catalog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#groupsObject (readonly)

Returns the value of attribute groups

Returns:

  • (Object)

    the current value of groups



9
10
11
# File 'lib/localvault/group_catalog.rb', line 9

def groups
  @groups
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



9
10
11
# File 'lib/localvault/group_catalog.rb', line 9

def kind
  @kind
end

#queryObject (readonly)

Returns the value of attribute query

Returns:

  • (Object)

    the current value of query



9
10
11
# File 'lib/localvault/group_catalog.rb', line 9

def query
  @query
end

Instance Method Details

#groupObject



10
11
12
# File 'lib/localvault/group_catalog.rb', line 10

def group
  groups.one? ? groups.first : nil
end