Class: Paggi::Card

Inherits:
Resource show all
Includes:
Rest::Create, Rest::Update
Defined in:
lib/paggi/card.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#created, #errors, #id

Class Method Summary collapse

Methods included from Rest::Update

included, #update

Methods included from Rest::Create

#create, included

Methods inherited from Resource

build, class_name, #initialize, opts, request, #to_json, url, #valid?

Constructor Details

This class inherits a constructor from Paggi::Resource

Instance Attribute Details

#card_aliasObject

Returns the value of attribute card_alias.



6
7
8
# File 'lib/paggi/card.rb', line 6

def card_alias
  @card_alias
end

#customer_idObject

Returns the value of attribute customer_id.



6
7
8
# File 'lib/paggi/card.rb', line 6

def customer_id
  @customer_id
end

#cvcObject

Returns the value of attribute cvc.



6
7
8
# File 'lib/paggi/card.rb', line 6

def cvc
  @cvc
end

#cvc_checkObject

Returns the value of attribute cvc_check.



6
7
8
# File 'lib/paggi/card.rb', line 6

def cvc_check
  @cvc_check
end

#defaultObject

Returns the value of attribute default.



6
7
8
# File 'lib/paggi/card.rb', line 6

def default
  @default
end

#monthObject

Returns the value of attribute month.



6
7
8
# File 'lib/paggi/card.rb', line 6

def month
  @month
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/paggi/card.rb', line 6

def name
  @name
end

#numberObject

Returns the value of attribute number.



6
7
8
# File 'lib/paggi/card.rb', line 6

def number
  @number
end

#yearObject

Returns the value of attribute year.



6
7
8
# File 'lib/paggi/card.rb', line 6

def year
  @year
end

Class Method Details

.check(params) ⇒ Object



14
15
16
# File 'lib/paggi/card.rb', line 14

def check(params)
  update(params)
end

.check!(params) ⇒ Object



10
11
12
# File 'lib/paggi/card.rb', line 10

def check!(params)
  update!(params)
end