Class: ExtensisPortfolio::AssetQueryTerm

Inherits:
Object
  • Object
show all
Defined in:
lib/extensis_portfolio/asset_query_term.rb

Instance Method Summary collapse

Constructor Details

#initialize(field_name, operator, values) ⇒ AssetQueryTerm

Creates a new instance of ExtensisPortfolio::AssetQueryTerm

Parameters:

  • field_name (String)

    the field used for the query, e.g. ‘asset_id`

  • operator (String)

    query operator, e.g. ‘equalValue`

  • values (String)

    the value to query for, e.g. id of the asset



8
9
10
11
12
# File 'lib/extensis_portfolio/asset_query_term.rb', line 8

def initialize(field_name, operator, values)
  @field_name = field_name
  @operator = operator
  @values = values
end

Instance Method Details

#to_hashHash

Returns a Hash for use in a soap request

Returns:

  • (Hash)


17
18
19
20
21
22
23
# File 'lib/extensis_portfolio/asset_query_term.rb', line 17

def to_hash
  {
    field_name: @field_name,
    operator: @operator,
    values: @values
  }
end