Class: Stripe::InvoiceService::CreatePreviewParams::InvoiceItem::Period

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/invoice_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(end_: nil, start: nil) ⇒ Period

Returns a new instance of Period.



2355
2356
2357
2358
# File 'lib/stripe/services/invoice_service.rb', line 2355

def initialize(end_: nil, start: nil)
  @end = end_
  @start = start
end

Instance Attribute Details

#endObject

The end of the period, which must be greater than or equal to the start. This value is inclusive.



2351
2352
2353
# File 'lib/stripe/services/invoice_service.rb', line 2351

def end
  @end
end

#startObject

The start of the period. This value is inclusive.



2353
2354
2355
# File 'lib/stripe/services/invoice_service.rb', line 2353

def start
  @start
end