Class: Orb::Models::Plan::Product

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/plan.rb,
sig/orb/models/plan.rbs

Overview

See Also:

  • Orb::Models::Plan#product

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeProduct

Returns a new instance of Product.

Parameters:

  • id: (String)
  • created_at: (Time)
  • name: (String)


394
# File 'sig/orb/models/plan.rbs', line 394

def initialize: (id: String, created_at: Time, name: String) -> void

Instance Attribute Details

#created_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


566
# File 'lib/orb/models/plan.rb', line 566

required :created_at, Time

#idString

Parameters:

  • value (String)

Returns:

  • (String)


561
# File 'lib/orb/models/plan.rb', line 561

required :id, String

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


571
# File 'lib/orb/models/plan.rb', line 571

required :name, String

Instance Method Details

#to_hash{ id: String, created_at: Time, name: String }

Returns:

  • ({ id: String, created_at: Time, name: String })


396
# File 'sig/orb/models/plan.rbs', line 396

def to_hash: -> { id: String, created_at: Time, name: String }