Class: Rafflesia::TargetResolveRequest

Inherits:
Rafflesia::Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/refs/target_resolve_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  allow_network: :allow_network,
  limit: :limit,
  query: :query,
  source_snapshot_refs: :source_snapshot_refs
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ TargetResolveRequest

Returns a new instance of TargetResolveRequest.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/refs/target_resolve_request.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @allow_network = hash[:allow_network]
  @limit = hash[:limit]
  @query = hash[:query]
  @source_snapshot_refs = (hash[:source_snapshot_refs] || [])
end

Instance Attribute Details

#allow_networkObject

Returns the value of attribute allow_network.



15
16
17
# File 'lib/rafflesia/refs/target_resolve_request.rb', line 15

def allow_network
  @allow_network
end

#limitObject

Returns the value of attribute limit.



15
16
17
# File 'lib/rafflesia/refs/target_resolve_request.rb', line 15

def limit
  @limit
end

#queryObject

Returns the value of attribute query.



15
16
17
# File 'lib/rafflesia/refs/target_resolve_request.rb', line 15

def query
  @query
end

#source_snapshot_refsObject

Returns the value of attribute source_snapshot_refs.



15
16
17
# File 'lib/rafflesia/refs/target_resolve_request.rb', line 15

def source_snapshot_refs
  @source_snapshot_refs
end