Class: Picklive::Currency::Chips

Inherits:
Base
  • Object
show all
Includes:
ActionView::Helpers::TextHelper
Defined in:
lib/picklive/currency.rb

Instance Attribute Summary

Attributes inherited from Base

#integer_amount

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#*, #+, #-, #-@, #/, #<=>, #==, [], #abs, #amount, cash?, #eql?, fake?, #for_sentence, html_symbol, #initialize, #inspect, #num_from, #same_type!, #to_f, #to_i, virtual?

Constructor Details

This class inherits a constructor from Picklive::Currency::Base

Class Method Details

.codeObject



120
# File 'lib/picklive/currency.rb', line 120

def self.code         ; 'chips' ; end

.precisionObject



119
# File 'lib/picklive/currency.rb', line 119

def self.precision    ; 1       ; end

.real?Boolean

Returns:

  • (Boolean)


121
# File 'lib/picklive/currency.rb', line 121

def self.real?        ; false   ; end

.symbolObject



122
# File 'lib/picklive/currency.rb', line 122

def self.symbol       ; ''      ; end

Instance Method Details

#to_sObject



126
127
128
# File 'lib/picklive/currency.rb', line 126

def to_s
  pluralize(amount, "Chip")
end