Class: Payrex::Entities::Merchant

Inherits:
Object
  • Object
show all
Defined in:
lib/entities/merchant.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_resource) ⇒ Merchant

Returns a new instance of Merchant.



11
12
13
14
15
16
17
18
# File 'lib/entities/merchant.rb', line 11

def initialize(api_resource)
  @id = api_resource.data["id"]
  @resource = api_resource.data["resource"]
  @connection_type = api_resource.data["connection_type"]
  @livemode = api_resource.data["livemode"]
  @created_at = api_resource.data["created_at"]
  @updated_at = api_resource.data["updated_at"]
end

Instance Attribute Details

#connection_typeObject (readonly)

Returns the value of attribute connection_type.



4
5
6
# File 'lib/entities/merchant.rb', line 4

def connection_type
  @connection_type
end

#created_atObject (readonly)

Returns the value of attribute created_at.



4
5
6
# File 'lib/entities/merchant.rb', line 4

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/entities/merchant.rb', line 4

def id
  @id
end

#livemodeObject (readonly)

Returns the value of attribute livemode.



4
5
6
# File 'lib/entities/merchant.rb', line 4

def livemode
  @livemode
end

#resourceObject (readonly)

Returns the value of attribute resource.



4
5
6
# File 'lib/entities/merchant.rb', line 4

def resource
  @resource
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



4
5
6
# File 'lib/entities/merchant.rb', line 4

def updated_at
  @updated_at
end