Class: Io::Flow::V0::Models::PayoutStatusScheduled

Inherits:
PayoutStatus
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Attributes inherited from PayoutStatus

#code

Instance Method Summary collapse

Methods inherited from PayoutStatus

from_json, #to_hash

Constructor Details

#initialize(incoming = {}) ⇒ PayoutStatusScheduled

Returns a new instance of PayoutStatusScheduled.



59247
59248
59249
59250
59251
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 59247

def initialize(incoming={})
  super(:code => PayoutStatus::Types::PAYOUT_STATUS_SCHEDULED)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  @placeholder = (x = opts.delete(:placeholder); x.nil? ? nil : HttpClient::Preconditions.assert_class('placeholder', x, String))
end

Instance Attribute Details

#placeholderObject (readonly)

Returns the value of attribute placeholder.



59245
59246
59247
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 59245

def placeholder
  @placeholder
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



59257
59258
59259
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 59257

def copy(incoming={})
  PayoutStatusScheduled.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end

#subtype_to_hashObject



59261
59262
59263
59264
59265
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 59261

def subtype_to_hash
  {
    :placeholder => placeholder
  }
end

#to_jsonObject



59253
59254
59255
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 59253

def to_json
  JSON.dump(to_hash)
end