Class: OnlinePayments::SDK::Domain::CreateHostedFieldsSessionRequest
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::CreateHostedFieldsSessionRequest
- Defined in:
- lib/onlinepayments/sdk/domain/create_hosted_fields_session_request.rb
Instance Attribute Summary collapse
-
#locale ⇒ String
The current value of locale.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#locale ⇒ String
Returns 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_h ⇒ 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 |