Class: OnlinePayments::SDK::Domain::CreateHostedFieldsSessionRequest

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/create_hosted_fields_session_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#localeString

Returns the current value of locale.

Returns:

  • (String)

    the current value of locale



10
11
12
# File 'lib/onlinepayments/sdk/domain/create_hosted_fields_session_request.rb', line 10

def locale
  @locale
end

Instance Method Details

#from_hash(hash) ⇒ Object



21
22
23
24
25
26
# File 'lib/onlinepayments/sdk/domain/create_hosted_fields_session_request.rb', line 21

def from_hash(hash)
  super
  if hash.has_key? 'locale'
    @locale = hash['locale']
  end
end

#to_hHash

Returns:

  • (Hash)


15
16
17
18
19
# File 'lib/onlinepayments/sdk/domain/create_hosted_fields_session_request.rb', line 15

def to_h
  hash = super
  hash['locale'] = @locale unless @locale.nil?
  hash
end