Class: MnoEnterprise::CreditCard

Inherits:
BaseResource show all
Defined in:
app/models/mno_enterprise/credit_card.rb

Instance Method Summary collapse

Methods inherited from BaseResource

#==, base_class, #cache_key, #clear_association_cache, #clear_attribute_changes!, exists?, find_by, first, last, #max_updated_column_timestamp, #read_attribute, #reload, #save, #save!, #update, #write_attribute

Methods included from HerExtension::Validations::RemoteUniquenessValidation

included

Instance Method Details

#expiry_dateObject



39
40
41
# File 'app/models/mno_enterprise/credit_card.rb', line 39

def expiry_date
  year && month && Date.new(year, month).end_of_month
end