Class: Paymill::Base

Inherits:
Object
  • Object
show all
Extended by:
Restful::All, Restful::Create, Restful::Find
Defined in:
lib/paymill/models/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Restful::All

all

Methods included from Restful::Find

find

Methods included from Restful::Create

create

Constructor Details

#initialize(json) ⇒ Base

Returns a new instance of Base.



9
10
11
12
# File 'lib/paymill/models/base.rb', line 9

def initialize( json )
  deserialize( json )
  parse_timestamps
end

Instance Attribute Details

#app_idObject (readonly)

Returns the value of attribute app_id.



7
8
9
# File 'lib/paymill/models/base.rb', line 7

def app_id
  @app_id
end

#created_atObject (readonly)

Returns the value of attribute created_at.



7
8
9
# File 'lib/paymill/models/base.rb', line 7

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/paymill/models/base.rb', line 7

def id
  @id
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



7
8
9
# File 'lib/paymill/models/base.rb', line 7

def updated_at
  @updated_at
end