Class: Judopay::TransmittedField

Inherits:
Model
  • Object
show all
Defined in:
lib/judopay/models/inner/transmitted_field.rb

Direct Known Subclasses

PkPayment, Wallet

Constant Summary collapse

WRONG_OBJECT_ERROR_MESSAGE =
'You passed wrong value to the %<foo>s. Please pass Hash or json-encoded string'.freeze
WRONG_JSON_ERROR_MESSAGE =
'Can\'t decode %<foo>s object from JSON'.freeze

Constants inherited from Model

Model::VALID_PAGING_OPTIONS

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

all, check_api_method_is_supported, #check_api_method_is_supported, #check_judo_id, #create, find, #resource_path, #valid_api_methods, valid_options, #validate

Class Attribute Details

.field_nameObject

Returns the value of attribute field_name.



11
12
13
# File 'lib/judopay/models/inner/transmitted_field.rb', line 11

def field_name
  @field_name
end

Class Method Details

.new(*args) ⇒ Object



13
14
15
# File 'lib/judopay/models/inner/transmitted_field.rb', line 13

def new(*args)
  super(validate_data(*args))
end

Instance Method Details

#==(other) ⇒ Object



35
36
37
# File 'lib/judopay/models/inner/transmitted_field.rb', line 35

def ==(other)
  to_yaml == other.to_yaml
end