Class: ODDB::View::User::FiPiOfferInputForm::RadioButton

Inherits:
Object
  • Object
show all
Defined in:
src/view/user/fipi_offer_input.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (RadioButton) initialize(name, value, current)

A new instance of RadioButton



53
54
55
56
57
# File 'src/view/user/fipi_offer_input.rb', line 53

def initialize(name, value, current)
  @name = name
  @value = value
  @current = current
end

Instance Attribute Details

- (Object) current

Returns the value of attribute current



52
53
54
# File 'src/view/user/fipi_offer_input.rb', line 52

def current
  @current
end

- (Object) name (readonly)

Returns the value of attribute name



51
52
53
# File 'src/view/user/fipi_offer_input.rb', line 51

def name
  @name
end

- (Object) value (readonly)

Returns the value of attribute value



51
52
53
# File 'src/view/user/fipi_offer_input.rb', line 51

def value
  @value
end

Instance Method Details

- (Boolean) checked?

Returns:

  • (Boolean)


58
59
60
# File 'src/view/user/fipi_offer_input.rb', line 58

def checked?
  @value == @current
end