Class: Senren::Rails::Registry::Component

Inherits:
Struct
  • Object
show all
Defined in:
lib/senren/rails/registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accessibilityObject

Returns the value of attribute accessibility

Returns:

  • (Object)

    the current value of accessibility



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def accessibility
  @accessibility
end

#avoidObject

Returns the value of attribute avoid

Returns:

  • (Object)

    the current value of avoid



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def avoid
  @avoid
end

#can_have_clientObject

Returns the value of attribute can_have_client

Returns:

  • (Object)

    the current value of can_have_client



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def can_have_client
  @can_have_client
end

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def category
  @category
end

#clientObject

Returns the value of attribute client

Returns:

  • (Object)

    the current value of client



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def client
  @client
end

#controllerObject

Returns the value of attribute controller

Returns:

  • (Object)

    the current value of controller



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def controller
  @controller
end

#depends_onObject

Returns the value of attribute depends_on

Returns:

  • (Object)

    the current value of depends_on



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def depends_on
  @depends_on
end

#filesObject

Returns the value of attribute files

Returns:

  • (Object)

    the current value of files



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def files
  @files
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def name
  @name
end

#pairs_withObject

Returns the value of attribute pairs_with

Returns:

  • (Object)

    the current value of pairs_with



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def pairs_with
  @pairs_with
end

#stubObject

Returns the value of attribute stub

Returns:

  • (Object)

    the current value of stub



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def stub
  @stub
end

#use_forObject

Returns the value of attribute use_for

Returns:

  • (Object)

    the current value of use_for



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def use_for
  @use_for
end

#variantsObject

Returns the value of attribute variants

Returns:

  • (Object)

    the current value of variants



17
18
19
# File 'lib/senren/rails/registry.rb', line 17

def variants
  @variants
end

Instance Method Details

#client?Boolean

Returns:

  • (Boolean)


24
# File 'lib/senren/rails/registry.rb', line 24

def client? = client == true

#stub?Boolean

Returns:

  • (Boolean)


23
# File 'lib/senren/rails/registry.rb', line 23

def stub? = stub == true

#to_h_fullObject



26
27
28
# File 'lib/senren/rails/registry.rb', line 26

def to_h_full
  to_h.merge(stub: stub?, client: client?)
end