Class: Firecrawl::Models::CreditUsage
- Inherits:
-
Object
- Object
- Firecrawl::Models::CreditUsage
- Defined in:
- lib/firecrawl/models/credit_usage.rb
Overview
Credit usage information.
Instance Attribute Summary collapse
-
#billing_period_end ⇒ Object
readonly
Returns the value of attribute billing_period_end.
-
#billing_period_start ⇒ Object
readonly
Returns the value of attribute billing_period_start.
-
#plan_credits ⇒ Object
readonly
Returns the value of attribute plan_credits.
-
#remaining_credits ⇒ Object
readonly
Returns the value of attribute remaining_credits.
Instance Method Summary collapse
-
#initialize(data) ⇒ CreditUsage
constructor
A new instance of CreditUsage.
- #to_s ⇒ Object
Constructor Details
#initialize(data) ⇒ CreditUsage
Returns a new instance of CreditUsage.
10 11 12 13 14 15 |
# File 'lib/firecrawl/models/credit_usage.rb', line 10 def initialize(data) @remaining_credits = data["remainingCredits"] @plan_credits = data["planCredits"] @billing_period_start = data["billingPeriodStart"] @billing_period_end = data["billingPeriodEnd"] end |
Instance Attribute Details
#billing_period_end ⇒ Object (readonly)
Returns the value of attribute billing_period_end.
7 8 9 |
# File 'lib/firecrawl/models/credit_usage.rb', line 7 def billing_period_end @billing_period_end end |
#billing_period_start ⇒ Object (readonly)
Returns the value of attribute billing_period_start.
7 8 9 |
# File 'lib/firecrawl/models/credit_usage.rb', line 7 def billing_period_start @billing_period_start end |
#plan_credits ⇒ Object (readonly)
Returns the value of attribute plan_credits.
7 8 9 |
# File 'lib/firecrawl/models/credit_usage.rb', line 7 def plan_credits @plan_credits end |
#remaining_credits ⇒ Object (readonly)
Returns the value of attribute remaining_credits.
7 8 9 |
# File 'lib/firecrawl/models/credit_usage.rb', line 7 def remaining_credits @remaining_credits end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/firecrawl/models/credit_usage.rb', line 17 def to_s "CreditUsage{remaining=#{remaining_credits}/#{plan_credits}}" end |