Class: WebPay::CreatedRange
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Class Method Summary collapse
Instance Method Summary collapse
-
#gt ⇒ Object
attributes accessors.
- #gt=(value) ⇒ Object
- #gte ⇒ Object
- #gte=(value) ⇒ Object
-
#initialize(hash = {}) ⇒ CreatedRange
constructor
A new instance of CreatedRange.
- #lt ⇒ Object
- #lt=(value) ⇒ Object
- #lte ⇒ Object
- #lte=(value) ⇒ Object
- #query_params ⇒ Object
- #request_body ⇒ Object
Methods inherited from Entity
Constructor Details
#initialize(hash = {}) ⇒ CreatedRange
Returns a new instance of CreatedRange.
731 732 733 734 |
# File 'lib/webpay/data_types.rb', line 731 def initialize(hash = {}) hash = normalize_hash(hash) @attributes = hash end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
714 715 716 |
# File 'lib/webpay/data_types.rb', line 714 def attributes @attributes end |
Class Method Details
.create(params) ⇒ Object
721 722 723 724 725 726 727 728 729 |
# File 'lib/webpay/data_types.rb', line 721 def self.create(params) return params if params.is_a?(self) hash = case params when Hash; params else raise WebPay::InvalidRequestError.new("#{self} does not accept the given value", params) end self.new(hash) end |
.fields ⇒ Object
716 717 718 |
# File 'lib/webpay/data_types.rb', line 716 def self.fields ['gt', 'gte', 'lt', 'lte'] end |
Instance Method Details
#gt ⇒ Object
attributes accessors
753 754 755 |
# File 'lib/webpay/data_types.rb', line 753 def gt attributes['gt'] end |
#gt=(value) ⇒ Object
757 758 759 |
# File 'lib/webpay/data_types.rb', line 757 def gt=(value) attributes['gt'] = value end |
#gte ⇒ Object
761 762 763 |
# File 'lib/webpay/data_types.rb', line 761 def gte attributes['gte'] end |
#gte=(value) ⇒ Object
765 766 767 |
# File 'lib/webpay/data_types.rb', line 765 def gte=(value) attributes['gte'] = value end |
#lt ⇒ Object
769 770 771 |
# File 'lib/webpay/data_types.rb', line 769 def lt attributes['lt'] end |
#lt=(value) ⇒ Object
773 774 775 |
# File 'lib/webpay/data_types.rb', line 773 def lt=(value) attributes['lt'] = value end |
#lte ⇒ Object
777 778 779 |
# File 'lib/webpay/data_types.rb', line 777 def lte attributes['lte'] end |
#lte=(value) ⇒ Object
781 782 783 |
# File 'lib/webpay/data_types.rb', line 781 def lte=(value) attributes['lte'] = value end |
#query_params ⇒ Object
742 743 744 745 746 747 748 749 |
# File 'lib/webpay/data_types.rb', line 742 def query_params result = {} copy_if_exists(@attributes, result, 'gt', 'query_params'); copy_if_exists(@attributes, result, 'gte', 'query_params'); copy_if_exists(@attributes, result, 'lt', 'query_params'); copy_if_exists(@attributes, result, 'lte', 'query_params'); return result end |
#request_body ⇒ Object
737 738 739 740 |
# File 'lib/webpay/data_types.rb', line 737 def request_body result = {} result end |