Class: Sink::Resources::ConfigTools::ParentWithSkipNodePython

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/config_tools/parent_with_skip_node_python.rb,
lib/sink/resources/config_tools/parent_with_skip_node_python/child_only_skip_python.rb

Defined Under Namespace

Classes: ChildOnlySkipPython

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ ParentWithSkipNodePython



11
12
13
14
# File 'lib/sink/resources/config_tools/parent_with_skip_node_python.rb', line 11

def initialize(client:)
  @client = client
  @child_only_skip_python = Sink::Resources::ConfigTools::ParentWithSkipNodePython::ChildOnlySkipPython.new(client: client)
end

Instance Attribute Details

#child_only_skip_pythonSink::Resources::ConfigTools::ParentWithSkipNodePython::ChildOnlySkipPython (readonly)



8
9
10
# File 'lib/sink/resources/config_tools/parent_with_skip_node_python.rb', line 8

def child_only_skip_python
  @child_only_skip_python
end

Instance Method Details

#not_in_node_python(params = {}, opts = {}) ⇒ Sink::Models::Card

Create a new virtual or physical card. Parameters pin, shippingAddress, and

`product_id` only apply to physical cards.


88
89
90
91
92
93
94
95
96
97
# File 'lib/sink/resources/config_tools/parent_with_skip_node_python.rb', line 88

def not_in_node_python(params = {}, opts = {})
  req = {
    method: :post,
    path: "/cards",
    body: params,
    headers: {"Content-Type" => "application/json"},
    model: Sink::Models::Card
  }
  @client.request(req, opts)
end