Class: RemoveBg::AccountInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/remove_bg/account_info.rb

Defined Under Namespace

Classes: ApiInfo, CreditsInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ AccountInfo

Returns a new instance of AccountInfo.



11
12
13
14
# File 'lib/remove_bg/account_info.rb', line 11

def initialize(attributes)
  @api = ApiInfo.new(**attributes.fetch(:api))
  @credits = CreditsInfo.new(**attributes.fetch(:credits))
end

Instance Attribute Details

#apiRemoveBg::AccountInfo::ApiInfo (readonly)



6
7
8
# File 'lib/remove_bg/account_info.rb', line 6

def api
  @api
end

#creditsRemoveBg::AccountInfo::CreditsInfo (readonly)



9
10
11
# File 'lib/remove_bg/account_info.rb', line 9

def credits
  @credits
end