Class: Postio::Models::MetaConnect

Inherits:
Data
  • Object
show all
Defined in:
lib/postio/models.rb

Overview

MetaConnect — meta block for /connect (no count).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#performanceObject (readonly)

Returns the value of attribute performance

Returns:

  • (Object)

    the current value of performance



24
25
26
# File 'lib/postio/models.rb', line 24

def performance
  @performance
end

#request_idObject (readonly)

Returns the value of attribute request_id

Returns:

  • (Object)

    the current value of request_id



24
25
26
# File 'lib/postio/models.rb', line 24

def request_id
  @request_id
end

Class Method Details

.from_hash(h) ⇒ Object



25
26
27
28
29
30
# File 'lib/postio/models.rb', line 25

def self.from_hash(h)
  new(
    request_id:  h["requestId"].to_s,
    performance: Performance.from_hash(h["performance"])
  )
end