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.



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

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

Instance Attribute Details

#colorObject

Returns the value of attribute color.



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

def color
  @color
end

#html_optionsObject

Returns the value of attribute html_options.



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

def html_options
  @html_options
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#imageObject

Returns the value of attribute image.



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

def image
  @image
end

#styleObject

Returns the value of attribute style.



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

def style
  @style
end

#tag_nameObject

Returns the value of attribute tag_name.



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

def tag_name
  @tag_name
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end