Class: ReactorSDK::Resources::Property

Inherits:
BaseResource show all
Defined in:
lib/reactor_sdk/resources/property.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#attributes, #id, #meta, #relationships, #type

Instance Method Summary collapse

Methods inherited from BaseResource

#==, #[], attribute, #initialize, #relationship_data, #relationship_id, #relationship_ids, #to_h

Constructor Details

This class inherits a constructor from ReactorSDK::Resources::BaseResource

Instance Method Details

#created_atString

Returns ISO8601 timestamp when the property was created.

Returns:

  • (String)

    ISO8601 timestamp when the property was created



31
# File 'lib/reactor_sdk/resources/property.rb', line 31

attribute :created_at

#domainsArray<String>

Returns Domains associated with this property (web only).

Returns:

  • (Array<String>)

    Domains associated with this property (web only)



28
# File 'lib/reactor_sdk/resources/property.rb', line 28

attribute :domains, default: []

#enabledBoolean

Returns Whether the property is enabled.

Returns:

  • (Boolean)

    Whether the property is enabled



25
# File 'lib/reactor_sdk/resources/property.rb', line 25

attribute :enabled, as: :boolean

#inspectString

Returns Human-readable representation.

Returns:

  • (String)

    Human-readable representation



39
40
41
# File 'lib/reactor_sdk/resources/property.rb', line 39

def inspect
  "#<ReactorSDK::Resources::Property id=#{id.inspect} name=#{name.inspect} platform=#{platform.inspect}>"
end

#nameString

Returns Display name of the property.

Returns:

  • (String)

    Display name of the property



19
# File 'lib/reactor_sdk/resources/property.rb', line 19

attribute :name

#platformString

Returns Platform type — one of: “web”, “mobile”, “edge”.

Returns:

  • (String)

    Platform type — one of: “web”, “mobile”, “edge”



22
# File 'lib/reactor_sdk/resources/property.rb', line 22

attribute :platform

#updated_atString

Returns ISO8601 timestamp when the property was last updated.

Returns:

  • (String)

    ISO8601 timestamp when the property was last updated



34
# File 'lib/reactor_sdk/resources/property.rb', line 34

attribute :updated_at