Class: Signable::Model::Embed

Inherits:
Struct
  • Object
show all
Includes:
Concerns::Prefix
Defined in:
lib/signable/model/embed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concerns::Prefix

#match?, #name_with_prefix, #name_without_prefix, #prefix

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



3
4
5
# File 'lib/signable/model/embed.rb', line 3

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



3
4
5
# File 'lib/signable/model/embed.rb', line 3

def options
  @options
end

Instance Method Details

#embed_classObject



6
7
8
# File 'lib/signable/model/embed.rb', line 6

def embed_class
  "Signable::#{name.to_s.classify}".constantize
end