Class: SexybuttonHelper::SexyButton

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/sexybutton_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSexyButton

Returns a new instance of SexyButton.



34
35
36
37
38
# File 'app/helpers/sexybutton_helper.rb', line 34

def initialize
  self.tag_name = 'button'
  self.color = 'black'
  self.html_options = {}
end

Instance Attribute Details

#colorObject

Returns the value of attribute color.



32
33
34
# File 'app/helpers/sexybutton_helper.rb', line 32

def color
  @color
end

#html_optionsObject

Returns the value of attribute html_options.



32
33
34
# File 'app/helpers/sexybutton_helper.rb', line 32

def html_options
  @html_options
end

#idObject

Returns the value of attribute id.



32
33
34
# File 'app/helpers/sexybutton_helper.rb', line 32

def id
  @id
end

#imageObject

Returns the value of attribute image.



32
33
34
# File 'app/helpers/sexybutton_helper.rb', line 32

def image
  @image
end

#styleObject

Returns the value of attribute style.



32
33
34
# File 'app/helpers/sexybutton_helper.rb', line 32

def style
  @style
end

#tag_nameObject

Returns the value of attribute tag_name.



32
33
34
# File 'app/helpers/sexybutton_helper.rb', line 32

def tag_name
  @tag_name
end

#typeObject

Returns the value of attribute type.



32
33
34
# File 'app/helpers/sexybutton_helper.rb', line 32

def type
  @type
end