Class: Postio::Models::ConnectSuccess

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#metaObject (readonly)

Returns the value of attribute meta

Returns:

  • (Object)

    the current value of meta



198
199
200
# File 'lib/postio/models.rb', line 198

def meta
  @meta
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



198
199
200
# File 'lib/postio/models.rb', line 198

def success
  @success
end

Class Method Details

.from_hash(h) ⇒ Object



199
200
201
# File 'lib/postio/models.rb', line 199

def self.from_hash(h)
  new(success: h["success"] == true, meta: MetaConnect.from_hash(h["meta"]))
end