Class: Insta::Redaction::Selector::Segment

Inherits:
Struct
  • Object
show all
Defined in:
lib/insta/redaction/selector.rb,
sig/insta/redaction/selector.rbs

Overview

: Struct[Symbol, untyped]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



6
7
8
# File 'lib/insta/redaction/selector.rb', line 6

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



6
7
8
# File 'lib/insta/redaction/selector.rb', line 6

def value
  @value
end

Class Method Details

.new(type:, value:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(type:, value:) ⇒ instance

    Parameters:

    • type: (Object)
    • value: (Object)

    Returns:

    • (instance)
  • .new(arg0) ⇒ instance

    Parameters:

    • arg0 ({ ?type: untyped, ?value: untyped })

    Returns:

    • (instance)


11
12
# File 'sig/insta/redaction/selector.rbs', line 11

def self.new: (?type: untyped, ?value: untyped) -> instance
| ({ ?type: untyped, ?value: untyped }) -> instance