Class: RemoveBg::AccountInfo
- Inherits:
-
Object
- Object
- RemoveBg::AccountInfo
- Defined in:
- lib/remove_bg/account_info.rb
Defined Under Namespace
Classes: ApiInfo, CreditsInfo
Instance Attribute Summary collapse
- #api ⇒ RemoveBg::AccountInfo::ApiInfo readonly
- #credits ⇒ RemoveBg::AccountInfo::CreditsInfo readonly
Instance Method Summary collapse
-
#initialize(attributes) ⇒ AccountInfo
constructor
A new instance of AccountInfo.
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
#api ⇒ RemoveBg::AccountInfo::ApiInfo (readonly)
6 7 8 |
# File 'lib/remove_bg/account_info.rb', line 6 def api @api end |
#credits ⇒ RemoveBg::AccountInfo::CreditsInfo (readonly)
9 10 11 |
# File 'lib/remove_bg/account_info.rb', line 9 def credits @credits end |