Class: WpApiClient::Entities::Meta
- Inherits:
-
Base
- Object
- Base
- WpApiClient::Entities::Meta
show all
- Defined in:
- lib/wp_api_client/entities/meta.rb
Instance Attribute Summary
Attributes inherited from Base
#resource
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
build, #initialize, #links, #relations
Class Method Details
.represents?(json) ⇒ Boolean
6
7
8
|
# File 'lib/wp_api_client/entities/meta.rb', line 6
def self.represents?(json)
json["key"] and json["value"]
end
|
Instance Method Details
#key ⇒ Object
10
11
12
|
# File 'lib/wp_api_client/entities/meta.rb', line 10
def key
meta["key"]
end
|
#value ⇒ Object
14
15
16
|
# File 'lib/wp_api_client/entities/meta.rb', line 14
def value
meta["value"]
end
|